tree dragdrop: node properties - Ext JS

tree.on('beforenodedrop', function(node) {
	alert(node.target.attributes.cls);
});
With node.target.attributes I can access the target properties of the node. But how can I access the properties of the node I drag and drop? I really can't find this in the documentation.
  # 2  
03-12-2007, 08:02 AM

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  
03-12-2007, 08:08 AM

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  
03-14-2007, 03:18 PM

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
});
you can access each attribute as
    alert(node.attributes.foo);
    alert(node.attributes.bar);
    alert(node.attributes.object);
    //etc

你可能感兴趣的:(ext,Access,yui)