Pman.Tab.CmsProduct.js
[Pman.Cms] / Pman.Tab.CmsCategoryTree.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by Builder Module - do not edit directly
4
5
6
7 // register the module first
8 Pman.on('beforeload', function()
9 {
10     var disabled = true;
11     if (disabled) {
12         return; 
13     }
14     Pman.register({
15         modKey : '000-pman_tab_cmscategorytree',
16         module : Pman.Tab.CmsCategoryTree,
17         region : 'center',
18         parent : Pman.Tab.Cms,
19         name : "Cms - Category Tree"
20     });
21 });
22 Pman.Tab.CmsCategoryTree = new Roo.util.Observable({
23
24     panel : false,
25     disabled : false,
26     parentLayout:  false,
27
28     add : function(parentLayout, region)
29     {
30
31         var _this = this;
32         this.parentLayout = parentLayout;
33
34         this.panel = parentLayout.addxtype({
35             xtype : 'TreePanel',
36             xns: Roo,
37             background : true,
38             fitToFrame : true,
39             region : 'center',
40             title : "Navigation Tree",
41             autoScroll : false,
42             tree : {
43                 xtype : 'TreePanel',
44                 xns: Roo.tree,
45                 containerScroll : true,
46                 width : 550,
47                 height : 300,
48                 rootVisible : true,
49                 loadMask : true,
50                 iconCls : 'icon-el',
51                 collapsible : true,
52                 floatable : false,
53                 ddScroll : true,
54                 animate : false,
55                 enableDD : true,
56                 ddGroup : 'component',
57                 renderer: function (n) {
58                 //    console.log(n);
59                     return n.title ? n.title : '??';
60                 },
61                 root : {
62                     xtype : 'AsyncTreeNode',
63                     id: Roo.id(),
64                     xns: Roo.tree,
65                     draggable : false
66                 },
67                 loader : {
68                     xtype : 'TreeLoader',
69                     xns: Roo.tree,
70                     dataUrl: baseURL + '/Roo/Category.php',
71                     requestMethod : 'GET',
72                     root : 'data',
73                     queryParam : 'parent_id',
74                     baseParams: {start: 0,limit : 9999}
75                 }
76             },
77             toolbar : {
78                 xtype : 'Toolbar',
79                 items : [
80                     {
81                         xtype : 'Button',
82                         xns: Roo.Toolbar,
83                         text : "Add"
84                     },
85                     {
86                         xtype : 'Button',
87                         xns: Roo.Toolbar,
88                         text : "Edit"
89                     },
90                     {
91                         xtype : 'Button',
92                         xns: Roo.Toolbar,
93                         text : "Delete"
94                     }
95                 ]
96             }
97         });
98     }
99 });
100 /*
101 --SOURCE--
102 QlpoNDFBWSZTWdHlfIcAApBfgEAAUP/KOL+HXw6/7//uQAKLhrTQaDU0TQ0JtTJiaGgA0DQNBkABoCFP
103 SnoygGT1MI0AA9T1A0wBzTEwAJgAmAAEwABMEiRCZNTaDSPU0ymno1NlNGgeUNMjRoQWQM9S5Ae9UgUV
104 lAz7lP8KEXFBgRl4cFdRx+UdIfHNLVC1MPnIpG0jCTqI6Fd4GQ/0Cqh0AKZIBGQhCNMvNqL6P1IKytvf
105 jl5snQg0oFpBpttpNtpJsbBsTHpbBtw0K3Xg82e3rn5baWdMUIodzQycQtzhyhEMG02pNSlApOTSiAnR
106 4jNYVdEiS2xGvfZos3xN7lM1u4EBzaLJ3xQiWTC6YnEziKChKXik69SWDSEcUkAH1N5dz4daOaAOorIP
107 TtShw7X1hNcB9mHTtvWinyCKWe85GY4VokbyuRx1FtdpYKLuUJSQ3Io0gxWoQwo+U/CcUv0X0Y2kcb30
108 gi5VLbOMUFqsDQ1jvRnoIB0NS9DpGmNSbqCRGCFSuPK475hdTCCcHYOWRuJw0FpZqoKVy7QcNTamjtlE
109 YNqbKRqMMD1d0/frscS7AeBSeUmAmRnWAyazPVasKw50VGpvcEmU+ONBMGW3+7OjuOqB04YqVRYEekzK
110 MWwdJ4FEqq/DMpVFFskEvVKck2YoQfC/Seb3/HX3OeJGy9azKY01BuZxQZKGqUtqrUFV8gu1dHQg15sO
111 IOjCBtNG2PR5cwxjCkxzIq+ezlmOdUrQGn71oLOZBpJPOt6XVCMED1SDEY5RTK5iA+DY59RKlnBjgzzI
112 2moDgKQDCssUOKJ2B5Fp0KUxv5AYUKsyoLkHqcxwMxaXf1PJsSxqEFkNaKkGTv/x+HCcsWdA0Ln9s9QY
113 l6sahH/F3JFOFCQ0eV8hwA==
114 */