[Chameleon] JSTreeView
Jeff Hamm
jeff at planyukon.ca
Thu Aug 12 19:35:10 EDT 2004
I would like to replace my XMLThemeLegend with a JSTreeView.
In my template file, I first created a shared resource like this:
<cwc2 TYPE="SharedResource" NAME="MyTree" ENABLEJS="true">
<NODEDATAFIELD value="mydata"/>
<NODELABELFIELD value="mylabel"/>
</cwc2>
Then I placed a JSTreeView widget in my template like this:
<cwc2 type="JSTreeView" JSSharedResource="MyTree">
</cwc2>
This is sufficient to generate a folder icon on my map (but no label). I
obviously need to build appropriate objects (akin to Themes/Groups in
XMLThemeLegend) for the tree. My question is how/where this should be
done? Do I declare the NODE* and LEAF* attributes in the template (as
above, but with javascript calls) or a renderer file (as in the
XMLThemeLegend approach).
>From previous postings to this list
(http://lists.maptools.org/pipermail/chameleon/2004-February/000499.html)
all I know is that it's 'tricky'. However,if anyone is able to provide a
sample/psuedo JSTreeView SharedResource widget, I'd have a better idea
of which way to turn.
Thanks,
Jeff Hamm
Yukon Land Use Planning Council
More information about the Chameleon
mailing list