DataObjects/Builder_tables.php
[Pman.Builder] / Pman.Tab.BuilderPalette.bjs
index b3256ed..5f6d4df 100644 (file)
@@ -1,9 +1,9 @@
 {
-    "id": "roo-file-34",
+    "id": "roo-file-196",
     "name": "Pman.Tab.BuilderPalette",
     "parent": "Pman.Tab.BuilderTab",
     "title": "Pman.Tab.BuilderPalette",
-    "path": "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
+    "path": "/home/edward/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
     "items": [
         {
             "listeners": {
                 {
                     "listeners": {
                         "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.ds.load({})\n    }\n    if (_this.ss) {\n        return;\n    }\n    _this.ss =   Roo.util.CSS.createStyleSheet(\n'.pman-builder-palete-hide { display: none; } ' + \"\\n\" \n, Roo.id())\n    \n    \n    \n}",
-                        "rowclass": "function (gridview, rowcfg)\n{\n    var sn = Pman.Tab.BuilderTree.tree.currentNodeType();\n    Roo.log(sn);\n    if (!sn) {\n        sn = '*top';\n    }\n    var cls = 'pman-builder-palete-hide';\n    var name  = rowcfg.record.data.name;\n    Roo.each(rowcfg.record.data.parents, function(n) {\n        if (n == name || n.split(':').shift() == name) \n            cls = '';\n            return true;\n        }\n     );\n     rowcfg.rowClass = cls;\n    // what is the currently selected element..\n \n}"
+                        "rowclass": "function (gridview, rowcfg)\n{\n    var sn = Pman.Builder.Tree.currentNodeType();\n  //  Roo.log(rowcfg);\n    if (!sn) {\n        sn = '*top';\n    }\n    var cls = 'pman-builder-palete-hide';\n   \n \n    Roo.each(rowcfg.record.json.parents, function(n) {\n        if (n == sn || n.split(':').shift() == sn) \n            cls = '';\n            return true;\n        }\n     );\n     //Roo.log(cls);\n     rowcfg.rowClass = cls;\n    // what is the currently selected element..\n \n}"
                     },
                     "*prop": "grid",
                     "autoExpandColumn": "name",
+                    "ddGroup": "component",
+                    "enableDrag": true,
                     "loadMask": true,
                     "xtype": "Grid",
                     "|xns": "Roo.grid",
                             ]
                         },
                         {
-                            "xtype": "ColumnModel",
+                            "*prop": "colModel[]",
+                            "dataIndex": "name",
                             "header": "Name",
                             "width": 200,
-                            "dataIndex": "name",
+                            "xtype": "ColumnModel",
                             "|renderer": "function(v) { return String.format('{0}', v); }",
-                            "|xns": "Roo.grid",
-                            "*prop": "colModel[]"
+                            "|xns": "Roo.grid"
+                        },
+                        {
+                            "*prop": "sm",
+                            "singleSelect": true,
+                            "xtype": "RowSelectionModel",
+                            "|xns": "Roo.grid"
                         }
                     ]
                 }