{
- "id": "roo-file-43",
+ "id": "roo-file-196",
"name": "Pman.Tab.BuilderPalette",
"parent": "Pman.Tab.BuilderTab",
"title": "Pman.Tab.BuilderPalette",
- "path": "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
- "items": [],
+ "path": "/home/edward/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
+ "items": [
+ {
+ "listeners": {
+ "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.ds.load({})\n }\n}"
+ },
+ "background": true,
+ "fitContainer": true,
+ "fitToframe": true,
+ "region": "east",
+ "tableName": "palette",
+ "title": "palette",
+ "xtype": "GridPanel",
+ "|xns": "Roo",
+ "items": [
+ {
+ "listeners": {
+ "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.ds.load({})\n }\n if (_this.ss) {\n return;\n }\n _this.ss = Roo.util.CSS.createStyleSheet(\n'.pman-builder-palete-hide { display: none; } ' + \"\\n\" \n, Roo.id())\n \n \n \n}",
+ "rowclass": "function (gridview, rowcfg)\n{\n var sn = Pman.Builder.Tree.currentNodeType();\n // Roo.log(rowcfg);\n if (!sn) {\n sn = '*top';\n }\n var cls = 'pman-builder-palete-hide';\n \n \n Roo.each(rowcfg.record.json.parents, function(n) {\n if (n == sn || n.split(':').shift() == sn) \n cls = '';\n return true;\n }\n );\n //Roo.log(cls);\n rowcfg.rowClass = cls;\n // what is the currently selected element..\n \n}"
+ },
+ "*prop": "grid",
+ "autoExpandColumn": "name",
+ "ddGroup": "component",
+ "enableDrag": true,
+ "loadMask": true,
+ "xtype": "Grid",
+ "|xns": "Roo.grid",
+ "items": [
+ {
+ "*prop": "dataSource",
+ "xtype": "Store",
+ "remoteSort": true,
+ "|sortInfo": "{ field : 'name', direction: 'ASC' }",
+ "|xns": "Roo.data",
+ "items": [
+ {
+ "*prop": "proxy",
+ "method": "GET",
+ "xtype": "HttpProxy",
+ "|url": "baseURL + '/Builder/Palette.php'",
+ "|xns": "Roo.data"
+ },
+ {
+ "*prop": "reader",
+ "id": "id",
+ "root": "data",
+ "totalProperty": "total",
+ "xtype": "JsonReader",
+ "|fields": "[\n \n {\n 'name': 'name',\n 'type': 'string'\n }\n]",
+ "|xns": "Roo.data"
+ }
+ ]
+ },
+ {
+ "*prop": "colModel[]",
+ "dataIndex": "name",
+ "header": "Name",
+ "width": 200,
+ "xtype": "ColumnModel",
+ "|renderer": "function(v) { return String.format('{0}', v); }",
+ "|xns": "Roo.grid"
+ },
+ {
+ "*prop": "sm",
+ "singleSelect": true,
+ "xtype": "RowSelectionModel",
+ "|xns": "Roo.grid"
+ }
+ ]
+ }
+ ]
+ }
+ ],
"permname": "",
"modOrder": "001"
}
\ No newline at end of file