I'm trying to convert an application that I've written from using a list
to display a bunch of dataset items, to using a tree. I have some
special code in my textlistitem which is invoked as each textlistitem is
created in order to set the fontstyle of the textlistitem to be either
plain or bold. In short, my code does something like this:
this._title.setAttribute("fontstyle", "bold");
This code works just fine. Now I'm trying to use a tree instead of a
list/textlist item. I've got the code working where it is attempting to
set the fontstyle to either bold or plain, but the visual result is
always plain. Initially I just tried doing this:
this.setAttribute("fontstyle", "bold")
where 'this' is an instance of 'tree'. I then inspected the tree object
and found that it holds on to a treeitem. So then I tried:
this.treeitem.setAttribute("fontstyle", "bold");
Again, no luck. Basically what I want to be able to do is this:
1. Retrieve data from a dataset
2. Create a tree leaf element for elements at a particular depth in the
dataset.
3. As each leaf element is created, I check an attribute of the
dataelement and based on that element make the tree display bold or
plain.
Can someone offer some guidance in doing this?
Thanks!
--
James Howe
[EMAIL PROTECTED]
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user