PDA

View Full Version : clickable url in tree view



tab
9 Mar 2007, 8:42 PM
I want to have the leaf for a treenode be a clickable url, but also drag and dropable (I'm doing a tree of bookmarks). I've read through documentation and the best I can come up with is to do something like adding a on(click,...) but it seems like there should be an easier way that I am missing ...

jack.slocum
10 Mar 2007, 1:00 AM
href attribute on the node config. To target a frame hrefTarget attribute.

tab
10 Mar 2007, 5:07 AM
thank you for the answer and for the great package.

tab
10 Mar 2007, 6:33 AM
a followup - when I look in the code I can find where the href attribute is used, but I don't know how to find the other attributes that I don't know about other than doing a search for "attributes". Is there documentation for attributes other than the code yet?

jack.slocum
10 Mar 2007, 6:38 AM
Grab the 1.0 Alpha download. There are docs for the TreePanel in it. The attributes appear under config. href and hrefTarget appear to be missing though. I will add those on.