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
![]() |
本文讨论了如何使用 YUI-Ext 框架中树形控件的拖放功能,并提供了如何获取拖动节点属性的具体代码示例。

1700

被折叠的 条评论
为什么被折叠?



