Pman.Tab.CmsCategoryTree.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 12 Apr 2010 09:43:55 +0000 (17:43 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 12 Apr 2010 09:43:55 +0000 (17:43 +0800)
Pman.Tab.CmsCategoryTree.js [new file with mode: 0644]

diff --git a/Pman.Tab.CmsCategoryTree.js b/Pman.Tab.CmsCategoryTree.js
new file mode 100644 (file)
index 0000000..5b1c6bd
--- /dev/null
@@ -0,0 +1,114 @@
+//<script type="text/javascript">
+
+// Auto generated file - created by Builder Module - do not edit directly
+
+
+
+// register the module first
+Pman.on('beforeload', function()
+{
+    var disabled = true;
+    if (disabled) {
+        return; 
+    }
+    Pman.register({
+        modKey : '000-pman_tab_cmscategorytree',
+        module : Pman.Tab.CmsCategoryTree,
+        region : 'center',
+        parent : Pman.Tab.Cms,
+        name : "Cms - Category Tree"
+    });
+});
+Pman.Tab.CmsCategoryTree = new Roo.util.Observable({
+
+    panel : false,
+    disabled : false,
+    parentLayout:  false,
+
+    add : function(parentLayout, region)
+    {
+
+        var _this = this;
+        this.parentLayout = parentLayout;
+
+        this.panel = parentLayout.addxtype({
+            xtype : 'TreePanel',
+            xns: Roo,
+            background : true,
+            fitToFrame : true,
+            region : 'center',
+            title : "Navigation Tree",
+            autoScroll : false,
+            tree : {
+                xtype : 'TreePanel',
+                xns: Roo.tree,
+                containerScroll : true,
+                width : 550,
+                height : 300,
+                rootVisible : true,
+                loadMask : true,
+                iconCls : 'icon-el',
+                collapsible : true,
+                floatable : false,
+                ddScroll : true,
+                animate : false,
+                enableDD : true,
+                ddGroup : 'component',
+                renderer: function (n) {
+                //    console.log(n);
+                    return n.title ? n.title : '??';
+                },
+                root : {
+                    xtype : 'AsyncTreeNode',
+                    id: Roo.id(),
+                    xns: Roo.tree,
+                    draggable : false
+                },
+                loader : {
+                    xtype : 'TreeLoader',
+                    xns: Roo.tree,
+                    dataUrl: baseURL + '/Roo/Category.php',
+                    requestMethod : 'GET',
+                    root : 'data',
+                    queryParam : 'parent_id',
+                    baseParams: {start: 0,limit : 9999}
+                }
+            },
+            toolbar : {
+                xtype : 'Toolbar',
+                items : [
+                    {
+                        xtype : 'Button',
+                        xns: Roo.Toolbar,
+                        text : "Add"
+                    },
+                    {
+                        xtype : 'Button',
+                        xns: Roo.Toolbar,
+                        text : "Edit"
+                    },
+                    {
+                        xtype : 'Button',
+                        xns: Roo.Toolbar,
+                        text : "Delete"
+                    }
+                ]
+            }
+        });
+    }
+});
+/*
+--SOURCE--
+QlpoNDFBWSZTWdHlfIcAApBfgEAAUP/KOL+HXw6/7//uQAKLhrTQaDU0TQ0JtTJiaGgA0DQNBkABoCFP
+SnoygGT1MI0AA9T1A0wBzTEwAJgAmAAEwABMEiRCZNTaDSPU0ymno1NlNGgeUNMjRoQWQM9S5Ae9UgUV
+lAz7lP8KEXFBgRl4cFdRx+UdIfHNLVC1MPnIpG0jCTqI6Fd4GQ/0Cqh0AKZIBGQhCNMvNqL6P1IKytvf
+jl5snQg0oFpBpttpNtpJsbBsTHpbBtw0K3Xg82e3rn5baWdMUIodzQycQtzhyhEMG02pNSlApOTSiAnR
+4jNYVdEiS2xGvfZos3xN7lM1u4EBzaLJ3xQiWTC6YnEziKChKXik69SWDSEcUkAH1N5dz4daOaAOorIP
+TtShw7X1hNcB9mHTtvWinyCKWe85GY4VokbyuRx1FtdpYKLuUJSQ3Io0gxWoQwo+U/CcUv0X0Y2kcb30
+gi5VLbOMUFqsDQ1jvRnoIB0NS9DpGmNSbqCRGCFSuPK475hdTCCcHYOWRuJw0FpZqoKVy7QcNTamjtlE
+YNqbKRqMMD1d0/frscS7AeBSeUmAmRnWAyazPVasKw50VGpvcEmU+ONBMGW3+7OjuOqB04YqVRYEekzK
+MWwdJ4FEqq/DMpVFFskEvVKck2YoQfC/Seb3/HX3OeJGy9azKY01BuZxQZKGqUtqrUFV8gu1dHQg15sO
+IOjCBtNG2PR5cwxjCkxzIq+ezlmOdUrQGn71oLOZBpJPOt6XVCMED1SDEY5RTK5iA+DY59RKlnBjgzzI
+2moDgKQDCssUOKJ2B5Fp0KUxv5AYUKsyoLkHqcxwMxaXf1PJsSxqEFkNaKkGTv/x+HCcsWdA0Ln9s9QY
+l6sahH/F3JFOFCQ0eV8hwA==
+*/