3 "name": "Pman.Tab.CmsCategoryType",
4 "parent": "Pman.Tab.Cms",
5 "title": "Pman.Tab.CmsCategoryType",
6 "path": "/home/alan/gitlive/Pman.Cms/Pman.Tab.CmsCategoryType.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "tableName": "cms_category_type",
17 "title": "Category Types",
23 "|render": "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.CmsCategoryType;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
24 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
27 "autoExpandColumn": "name",
33 "*prop": "dataSource",
36 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
43 "|url": "baseURL + '/Roo/cms_category_type.php'",
48 "xtype": "JsonReader",
49 "totalProperty": "total",
53 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'name',\n 'type': 'string'\n }\n]"
59 "xtype": "PagingToolbar",
62 "displayMsg": "Displaying cms_category_type{0} - {1} of {2}",
63 "emptyMsg": "No cms_category_type found",
72 "|xns": "Roo.Toolbar",
78 "cls": "x-btn-text-icon",
79 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
81 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
88 "cls": "x-btn-text-icon",
89 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
91 "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (!_this.dialog) return;\n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
97 "cls": "x-btn-text-icon",
98 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
101 "|click": "function()\n{\n Pman.genericDelete(_this, 'cms_category_type'); \n}\n "
103 "|xns": "Roo.Toolbar"
108 "xtype": "ColumnModel",
112 "|renderer": "function(v) { return String.format('{0}', v); }",
114 "*prop": "colModel[]"