Fix #7468 - updating template scanner
[Pman.Cms] / Pman.Tab.CmsCategoryTree.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Pman.Tab.CmsCategoryTree = new Roo.XComponent({
6     part     :  ["Cms","CategoryTree"],
7     order    : '001-Pman.Tab.CmsCategoryTree',
8     region   : 'center',
9     parent   : false,
10     name     : "Cms - Category Tree",
11     disabled : false, 
12     permname : '', 
13     _tree : function()
14     {
15         var _this = this;
16         var MODULE = this;
17         return {
18             xtype: 'TreePanel',
19             xns: Roo,
20             background : true,
21             fitToFrame : true,
22             region : 'center',
23             title : "Navigation Tree",
24             autoScroll : false,
25             tree : {
26                 xtype: 'TreePanel',
27                 xns: Roo.tree,
28                 animate : false,
29                 collapsible : true,
30                 containerScroll : true,
31                 ddGroup : 'component',
32                 ddScroll : true,
33                 enableDD : true,
34                 floatable : false,
35                 height : 300,
36                 iconCls : 'icon-el',
37                 loadMask : true,
38                 rootVisible : true,
39                 width : 550,
40                 renderer : function (n) {
41                 //    console.log(n);
42                     return n.title ? n.title : '??';
43                 },
44                 root : {
45                     xtype: 'AsyncTreeNode',
46                     xns: Roo.tree,
47                     id : Roo.id(),
48                     draggable : false
49                 },
50                 loader : {
51                     xtype: 'TreeLoader',
52                     xns: Roo.tree,
53                     dataUrl : baseURL + '/Roo/Category.php',
54                     requestMethod : 'GET',
55                     root : 'data',
56                     queryParam : 'parent_id',
57                     baseParams : {start: 0,limit : 9999}
58                 }
59             },
60             toolbar : {
61                 xtype: 'Toolbar',
62                 xns: Roo,
63                 items : [
64                     {
65                         xtype: 'Button',
66                         xns: Roo.Toolbar,
67                         text : "Add"
68                     },
69                     {
70                         xtype: 'Button',
71                         xns: Roo.Toolbar,
72                         text : "Edit"
73                     },
74                     {
75                         xtype: 'Button',
76                         xns: Roo.Toolbar,
77                         text : "Delete"
78                     }
79                 ]
80             }
81         };
82     }
83 });