3 "name": "Pman.Dialog.BuilderPart",
6 "path": "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderPart.bjs",
13 "title": "Edit / Create builder_part",
15 "xtype": "LayoutDialog",
20 "xtype": "LayoutRegion",
25 "xtype": "ContentPanel",
30 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n if (!_this.data.id) { \n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n return;\n }\n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n",
31 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
34 "style": "margin:10px;",
36 "|url": "baseURL + '/Roo/builder_part.php'",
42 "allowBlank": "false",
44 "emptyText": "Select builder_modules",
45 "forceSelection": true,
47 "loadingText": "Searching...",
50 "qtip": "Select builder_modules",
51 "selectOnFocus": true,
52 "triggerAction": "all",
55 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
56 "queryParam": "query[name]",
57 "fieldLabel": "Module",
59 "displayField": "name",
60 "hiddenName": "module_id",
61 "name": "module_id_name",
68 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
70 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
78 "|url": "baseURL + '/Roo/builder_modules.php'"
82 "xtype": "JsonReader",
86 "totalProperty": "total",
87 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
94 "fieldLabel": "Part name",
111 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
113 "*prop": "buttons[]",
120 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.form.doAction(\"submit\");\n\n}"
122 "*prop": "buttons[]",