toledoj
Joined: 05 Nov 2007 Posts: 1
|
Posted: Mon Nov 05, 2007 9:17 pm Post subject: Custom Fields |
|
|
I have been trying to get custom fields to work and continue to bump into an error. I saw the example in a previous post:
var TREE_NODES =
[
['Caption', 'http://url/', 'someTargetFrame', {format:{customField1:"something", customField2:123, customField3:[1, 2, 3]}}],
];
var node = tree.nodeByID(...); // or whatever else method to get the reference
alert(node.getFormat().customField1);
alert(node.getFormat().customField2);
alert(node.getFormat().customField3);
I've tried this by having an caption_onclick function set up the does the alert(node.getFormat().customField1);
Instead of the custom field, I get an 'undefined' message. Is there something else to this?
I'm using the Pro version. |
|