3 "name": "Pman.Dialog.BuilderProp",
6 "path": "/home/edward/gitlive/Pman.Builder/Pman.Dialog.BuilderProp.bjs",
10 "show": "function (_self)\n{\n _this.grid.ds.load({});\n}"
17 "title": "Add Property",
19 "xtype": "LayoutDialog",
24 "xtype": "LayoutRegion",
29 "|activate": "function() {\n _this.panel = this;\n //if (_this.grid) {\n // _this.grid.ds.load({});\n //}\n}"
40 "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n // if (_this.panel.active) {\n // this.footer.onClick('first');\n // }\n}",
41 "|rowdblclick": "function (_self, rowIndex, e)\n{\n \n _this.callback(this.getDataSource().getAt(rowIndex).data.name);\n _this.dialog.hide(); \n}\n"
44 "autoExpandColumn": "desc",
51 "beforeload": "function (_self, options)\n{\n // we should cache this!!!\n options.params = options.params || {};\n options.params.xtype = _this.data.xtype;\n options.params.xns = _this.data.xns;\n options.params.list = _this.data.list; \n}"
53 "*prop": "dataSource",
56 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
63 "|url": "baseURL + '/Builder/Palette/Prop.php'",
70 "totalProperty": "total",
71 "xtype": "JsonReader",
72 "|fields": "[\n 'name',\n 'desc'\n]",
78 "*prop": "colModel[]",
82 "xtype": "ColumnModel",
83 "|renderer": "function(v) { return String.format('{0}', v ? v : ''); }",
87 "*prop": "colModel[]",
89 "header": "Description",
91 "xtype": "ColumnModel",
92 "|renderer": "function(v) { return String.format('{0}', v); }",
101 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
103 "*prop": "buttons[]",
110 "click": "function (_self, e)\n{\n // do some checks?\n var sel = _this.grid.getSelectionModel().getSelected();\n if (!sel) {\n Roo.MessageBox.alert(\"Error\", \"Select a property\");\n }\n \n _this.callback(sel.data.name);\n _this.dialog.hide();\n \n\n}"
112 "*prop": "buttons[]",