Pman.Tab.BuilderDatabase.bjs
Pman.Tab.BuilderDatabase.js
Pman.Tab.BuilderDatabase.js
"enableDrop": true,
"rootVisible": false,
"xtype": "TreePanel",
- "|renderer": "function(n) {\n return String.format('<B>{0}</B><i>{1}</i>',\n n.attributes.name,\n n.attributes.desc\n );\n\n}",
+ "|renderer": "function(n) {\n n.attributes.leaf = n.attributes.name.length ? true : false;\n\n return String.format('<B>{0}</B><i>{1}</i>',\n n.attributes.name,\n n.attributes.desc\n );\n \n}",
"|xns": "Roo.tree",
"items": [
{
enableDrop : true,
rootVisible : false,
renderer : function(n) {
+ n.attributes.leaf = n.attributes.name.length ? true : false;
+
return String.format('<B>{0}</B><i>{1}</i>',
n.attributes.name,
n.attributes.desc
);
-
+
},
loader : {
xtype: 'TreeLoader',