tree.on('beforenodedrop', function(node) { alert(node.target.attributes.cls); });

#2
![]() |
![]() It's mentioned in the documentation: http://www.yui-ext.com/deploy/ext-1....beforenodedrop
Code sample: tree.on("beforenodedrop", function(dropEvent){ Ext.dump(dropEvent.dropNode.attributes); }); ![]() |
#3
![]() |
![]() Thx s6urik, apparently I still have problems to find the information in the documentation that I need.
I'm very sorry for this question, but to say it in Dutch: "Al doende leert men" (or in English: "learning by doing") ![]() ![]() |
#4
![]() |
![]() if you create a node like so:
var node = new Ext.tree.TreeNode({ text: 'Node Text', id:'nodeID', object: 'root', foo: 'foo attribute', bar: 'bar attribute', leaf: false }); alert(node.attributes.foo); alert(node.attributes.bar); alert(node.attributes.object); //etc ![]() |