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';
79 var name = rowcfg.record.data.name;
81 Roo.each(rowcfg.record.hson.parents, function(n) {
82 if (n == name || n.split(':').shift() == name)
87 rowcfg.rowClass = cls;
88 // what is the currently selected element..
92 autoExpandColumn : 'name',
98 sortInfo : { field : 'name', direction: 'ASC' },
103 url : baseURL + '/Builder/Palette.php'
110 totalProperty : 'total',
122 xtype: 'ColumnModel',
127 renderer : function(v) { return String.format('{0}', v); }
132 this.layout = this.panel.layout;