AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Wed Jul 12, 2006 9:45 am Post subject: |
|
|
You can do the following:
| Code: | var TREE_NODES = [
['Caption', 'http://url/', 'someTargetFrame', {format:{customField1:"something", customField2:123, customField3:[1, 2, 3]}}],
]; |
And then you can use getFormat() method to get these values:
| Code: | var node = tree.nodeByID(...); // or whatever else method to get the reference
alert(node.getFormat().customField1);
alert(node.getFormat().customField2);
alert(node.getFormat().customField3); |
|
|