The Tree has styling for disclosure icons & folder icons. If you want additional or different visual controls you will most likely need to extend the TreeItemRenderer class and set it in the tree's itemrenderer property. You can override the createChildren() function to add any visual controls that can be toggled on/off based on values in the node data object, like if your node object has a 'loading' attribute you can use it to toggle a loading animation.
- Ivo ________________________________ From: Cato Paus <[email protected]> To: [email protected] Sent: Friday, December 19, 2008 6:10:56 AM Subject: [flexcoders] Re: Tree and array data bind the isBranch = {yourobject. haschilderen} or create your own TreeDataDescriptor by implemnting the ITreeDataDescriptor interface --- In flexcod...@yahoogro ups.com, "Dan Vega" <danv...@... > wrote: > > I don't think its just icon though is it? It needs to be a branch with an > arrow next to it so that you can click on it to expand the folder. > > Thank You > Dan Vega > danv...@... > http://www.danvega. org > > > On Thu, Dec 18, 2008 at 2:43 PM, Fotis Chatzinikos < > fotis.chatzinikos@ ...> wrote: > > > use iconFunction= "yourFunction( )" where yourfunction checks your isLeaf > > variable and assigns a folder or leaf icon > > > > > > On Thu, Dec 18, 2008 at 9:07 PM, Dan Vega <danv...@... > wrote: > > > >> but not every folder will be a branch, only those who have children. I > >> can set the default leaf icon to a standar folder but I am stuck on how to > >> treat branches using my example. > >> > >> > > > > > > -- > > Fotis Chatzinikos, Ph.D. > > Founder, > > Phinnovation > > Fotis.Chatzinikos@ ..., > > > > >

