extjs4 - Is there any way to disable nodes of treeview in ExtJS 4 -
My purpose is to disable some nodes of tree view in the west region. The snippet below shows: Why does the disabled and hidden assets not work in EXTPS 4? Is there a plugin to achieve this? The nodes in the paperpellings are It does not have a disabled or hidden property, but it has Example: In the CSS file: In the extjs code: For disabled functionality, you can use the Example:
root: {expanded: true, id: 'treeview1', children: [{"text" True: "True, ID: 'HS1', '** disabled **': true," ** hidden ** ": true}}}
Ext.data.NodeInterface objects.
cls and with it you can not add a
display: any that hide it Node has been
.x-hidden-node {display: none! Important:}}
root: {expanded: true, id: 'treeview1', children: [{Text: 'Copy', Leaf: True, ID: 'HS1', CLS: 'X-Chip-Node'}]}
beforeitemClick event in PaperPenel in which you can read the disabled property manually.
Ext (Extttree.Panel ', {(...) Audience: {beforeitemclick: function (treewiewview, record, item, index , E, eops) {if. (record.raw & record.raw.disabled == true) {return false;} re-turned n true;}, itemclick: function (tree view, record, item, index, e, Eoop) {console.log (record, item);}}});
Comments
Post a Comment