1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
7 // register the module first
8 Pman.on('beforeload', function()
11 modKey : '001-Pman.Tab.BuilderPalette',
12 module : Pman.Tab.BuilderPalette,
14 parent : Pman.Tab.BuilderTab,
15 name : "Pman.Tab.BuilderPalette",
21 Pman.Tab.BuilderPalette = new Roo.util.Observable({
27 add : function(parentLayout, region)
31 this.parentLayout = parentLayout;
33 this.panel = parentLayout.addxtype({
37 activate : function() {
40 _this.grid.ds.load({})
48 tableName : 'palette',
57 //_this.dialog = Pman.Dialog.FILL_IN
58 if (_this.panel.active) {
64 _this.ss = Roo.util.CSS.createStyleSheet(
65 '.pman-builder-palete-hide { display: none; } ' + "\n"
71 rowclass : function (gridview, rowcfg)
73 var sn = Pman.Tab.BuilderTree.tree.currentNodeType();
78 var cls = 'pman-builder-palete-hide';
81 Roo.each(rowcfg.record.json.parents, function(n) {
82 if (n == sn || n.split(':').shift() == sn)
88 rowcfg.rowClass = cls;
89 // what is the currently selected element..
93 autoExpandColumn : 'name',
99 sortInfo : { field : 'name', direction: 'ASC' },
104 url : baseURL + '/Builder/Palette.php'
111 totalProperty : 'total',
123 xtype: 'ColumnModel',
128 renderer : function(v) { return String.format('{0}', v); }
133 this.layout = this.panel.layout;