Pman.Tab.BuilderPalette.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 10 Aug 2018 03:59:02 +0000 (11:59 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 10 Aug 2018 03:59:02 +0000 (11:59 +0800)
Pman.Tab.BuilderPalette.js

Pman.Tab.BuilderPalette.bjs
Pman.Tab.BuilderPalette.js

index 868d8ab..d1d4c74 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Tab.BuilderPalette",
  "parent" : "Pman.Tab.BuilderTab",
  "title" : "Pman.Tab.BuilderPalette",
- "path" : "/home/edward/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
+ "path" : "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
@@ -14,9 +14,9 @@
    "listeners" : {
     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n       _this.grid.ds.load({})\n    }\n}"
    },
+   "region" : "east",
    "fitToframe" : true,
    "background" : true,
-   "region" : "east",
    "title" : "palette",
    "xtype" : "GridPanel",
    "fitContainer" : true,
@@ -25,7 +25,7 @@
    "items" : [
     {
      "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}",
+      "|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.Builder.Tree.currentNodeType();\n  //  Roo.log(rowcfg);\n    if (!sn) {\n        sn = '*top';\n    }\n    var cls = 'pman-builder-palete-hide';\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     \n     //Roo.log(cls);\n     rowcfg.rowClass = cls;\n    // what is the currently selected element..\n \n}"
      },
      "autoExpandColumn" : "name",
@@ -45,8 +45,8 @@
        "items" : [
         {
          "$ url" : "baseURL + '/Builder/Palette.php'",
-         "xtype" : "HttpProxy",
          "method" : "GET",
+         "xtype" : "HttpProxy",
          "$ xns" : "Roo.data",
          "* prop" : "proxy"
         },
@@ -63,8 +63,8 @@
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Name",
        "width" : 200,
+       "header" : "Name",
        "$ renderer" : "function(v) { return String.format('{0}', v); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
index 4da2315..0062527 100644 (file)
@@ -18,7 +18,7 @@ Pman.Tab.BuilderPalette = new Roo.XComponent({
   name     : "Pman.Tab.BuilderPalette",
   disabled : false, 
   permname : '', 
-  _tree : function()
+  _tree : function(_data)
   {
    var _this = this;
    var MODULE = this;
@@ -58,9 +58,9 @@ Pman.Tab.BuilderPalette = new Roo.XComponent({
               return;
           }
           _this.ss =   Roo.util.CSS.createStyleSheet(
-      '.pman-builder-palete-hide { display: none; } ' + "\n" 
-      , Roo.id());
-          
+              '.pman-builder-palete-hide { display: none; } ' + "\n" 
+          , Roo.id());
+                  
           
           
       },