Lith 6 сар өмнө
parent
commit
aa78a0184a
3 өөрчлөгдсөн 14 нэмэгдсэн , 71 устгасан
  1. 1 1
      Sqler.sln
  2. 1 48
      doc/Sqler.md
  3. 12 22
      doc/controllerConfig.js

+ 1 - 1
Sqler.sln

@@ -17,7 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "doc", "doc", "{02D7A308-F1D
 		doc\AutoTemp.README.md = doc\AutoTemp.README.md
 		doc\controllerConfig.js = doc\controllerConfig.js
 		README.md = README.md
-		doc\ReleaseLog.md = doc\ReleaseLog.md
+		doc\ReleaseNotes.md = doc\ReleaseNotes.md
 		doc\Sqler.md = doc\Sqler.md
 	EndProjectSection
 EndProject

+ 1 - 48
doc/Sqler.md

@@ -39,54 +39,7 @@ DbPort
 
 
 
-
-# SqlerMenu:
-
-
-``` json
-[
-    {
-        "id": 1,
-        "pid": 0,
-		"enabled": true,
-        "title": "SqlRun",
-        "sortIndex": 0,
-
-        "url": "/Scripts/autoTemp/item.html?apiRoute=/autoTemp/data/Sqler_SqlBackup_SqlServerBackup_Config/{action}&mode=update&id=1",
-
-
-		"extra": {
-			"target": "blank"	// 'blank', 'jump' , '' (default: add to tab),
-			"iconCls": "icon-null",
-		}
-    }
-]
-
-
-
-// jsMenu demo:
-[
-  {
-    "attributes": {
-      "url": ""
-    },
-    "text": "<img mid='10' />SqlRun",
-    "iconCls": "icon-null",
-    "children": [
-      {
-        "attributes": {
-          "url": "/autoTemp/Scripts/autoTemp/item.html?template=Sqler_SqlRun_Config&mode=update&id=1",
-          "target": "blank"	// 'blank', 'jump' , '' (default: add to tab)
-        },
-        "text": "<img  mid='10_1' />SqlRunÅäÖÃ",
-        "iconCls": "icon-null"
-      }
-    ]
-  }
-]
-
-```
-
+ 
 
 
 

+ 12 - 22
doc/controllerConfig.js

@@ -53,7 +53,7 @@ var controllerConfig = {
     "fields": [
         {
             "field": "name",   // db field
-            "title": "装修商",  // [optional] defaultValue is column.field
+            "title": "User Name",  // [optional] defaultValue is column.field
 
             "visible": false,
             "editable": false,
@@ -64,31 +64,21 @@ var controllerConfig = {
                 "visible": true,
             },
 
-            "ig_attr": {
+            "useDefaultFilter": true,// [optional] default true, will use default filter if filters is empty
+            "filters": [
+                {
+                    "title": "User Name", // [optional]
+                    "operators": ['=', '!=', 'in', 'notIn', 'contains', 'notContains', '>', '>=', '<', '<=', 'isNull', 'isNotNull'], // [optional]
+                    "ig_attr": null,// [optional]
+                }
+            ],
+
+            "ig_attr": { // default:  {ig_id:field, ig_class:'Text'}
                 "ig_class": "TextArea",  // Text TextArea
                 "ig_param": { "width": 300 }
             },
 
         }
-    ],
-
-    //"filterFields_TODO": [
-    //    {
-    //        "ig_class": "Text",
-    //        "field": "name",
-    //        "title": "装修商",
-    //        "filterOpt": "Contains"
-    //    },
-    //    {
-    //        "ig_class": "Text",
-    //        "field": "sex",
-    //        "title": "性别"
-    //    },
-    //    {
-    //        "ig_class": "Text",
-    //        "field": "random",
-    //        "title": "random"
-    //    }
-    //]
+    ]
 
 };