"enableDD": true,
"rootVisible": true,
"xtype": "TreePanel",
- "|defaultElConfig": "function() {\n return {\n xtype : '*top',\n \n module : 'TestApp',\n part: 'Partname',\n modkey : 0,\n region : 'center',\n parent : 'Pman',\n name : 'Module Name',\n items: [] \n };\n}\n",
"|deleteCurrent": "function() {\n if (this.currentNode == this.root) {\n return false;\n }\n var cfg = this.currentNode.elConfig;\n // things that can not be deleted...\n \n \n var pn = this.currentNode.parentNode;\n \n \n var ix = pn.indexOf(this.currentNode);\n // console.log(ix);\n pn.removeChild(this.currentNode);\n if (pn.childNodes.length) {\n ix = Math.min(pn.childNodes.length-1, ix);\n }\n this.setCurrentNode(pn.childNodes.length ? pn.childNodes[ix] : pn ,true);\n return true;\n}\n",
"|dupeNode": " function(node)\n {\n var cfg = this.cloneConfig(node.elConfig);\n \n var newNode = new Roo.tree.TreeNode(\n {\n id: Roo.id(),\n text: this.configToText(cfg)\n });\n \n newNode.elConfig = cfg;\n node.eachChild(function(n) {\n newNode.appendChild(this.dupeNode(n));\n },this);\n \n return newNode;\n \n }",
"|loadBJS": "function(module, part) {\n var _t = this;\n new Pman.Request({\n url : baseURL + '/Roo/Builder_part.php',\n method : 'GET',\n params : {\n _id : part\n },\n success : function(res) \n {\n // data is in.. \n Roo.log(res);\n \n if (!res.data.json.length) {\n var cfg = _t.defaultElConfig();\n cfg.name = Pman.Tab.BuilderTop.filesel.lastData.name;\n cfg.part = Pman.Tab.BuilderTop.filesel.lastData.name;\n cfg.module = '';\n _t.loadTree(cfg);\n return;\n \n }\n \n _t.loadTree(JSON.parse(res.data.json));\n \n \n }\n\n }) \n \n \n \n}\n",
ddGroup : 'component',
enableDD : true,
rootVisible : true,
- defaultElConfig : function() {
- return {
- xtype : '*top',
-
- module : 'TestApp',
- part: 'Partname',
- modkey : 0,
- region : 'center',
- parent : 'Pman',
- name : 'Module Name',
- items: []
- };
- },
deleteCurrent : function() {
if (this.currentNode == this.root) {
return false;