1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.BuilderProp = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
34 show : function (_self)
36 _this.grid.ds.load({});
44 title : "Add Property",
51 activate : function() {
54 // _this.grid.ds.load({});
69 //_this.dialog = Pman.Dialog.FILL_IN
70 // if (_this.panel.active) {
71 // this.footer.onClick('first');
74 rowdblclick : function (_self, rowIndex, e)
77 _this.callback(this.getDataSource().getAt(rowIndex).data.name);
81 autoExpandColumn : 'desc',
87 beforeload : function (_self, options)
89 // we should cache this!!!
90 options.params = options.params || {};
91 options.params.xtype = _this.data.xtype;
92 options.params.xns = _this.data.xns;
93 options.params.list = _this.data.list;
97 sortInfo : { field : 'name', direction: 'ASC' },
102 url : baseURL + '/Builder/Palette/Prop.php'
109 totalProperty : 'total',
118 xtype: 'ColumnModel',
123 renderer : function(v) { return String.format('{0}', v ? v : ''); }
126 xtype: 'ColumnModel',
129 header : 'Description',
131 renderer : function(v) { return String.format('{0}', v); }
138 xtype: 'LayoutRegion',
146 click : function (_self, e)
157 click : function (_self, e)
160 var sel = _this.grid.getSelectionModel().getSelected();
162 Roo.MessageBox.alert("Error", "Select a property");
165 _this.callback(sel.data.name);