|
@@ -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"
|
|
|
- // }
|
|
|
- //]
|
|
|
+ ]
|
|
|
|
|
|
};
|