Skip to main content

Node access in the tree

1 reply [Last post]
mk_hh
Offline
Joined: 2007-06-26
Points: 0

Hi,

How can I get a node object, if node was clicked?
Can I get a selected node?
Can I get a parent from a node?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Currently you are going to need to update the widget itself to pass a copy of it's parent and it's current node as part of the payload. We are hoping to provide an action property in the next rev of the tree widget model that will allow for finre grain access to events using a publish / subscribe event.

We are trying to describe the behaior here:

http://wiki.java.net/bin/view/Projects/JMakiTreeFunctionalSpec

If you have more suggestions on what kind of things we should allow for please let the group know or provide the comments to dev @ ajax.dev.java.net

Thank you,

-Greg