this can be done by using :
data.property
for example, if your listitem contains an object with the property myName
inside the itemRenderer you can you
{data.myName}

hope this helps

----- Original Message ----
From: an0one <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, June 16, 2008 7:47:13 AM
Subject: [flexcoders] How the information pass from *List controls to their 
item renderers?


Here by saying *List and *ListData I mean the three standard ListBase 
subclasses and their 
corresponding BaseListData subclasses, i.e., List <-> ListData, DataGrid <-> 
DataGridListData, Tree <-> TreeListData.

As I know, drop-in Item renderers in *List controls get the necessary 
information from their 
corresponding *ListData, so I guess there is some standard path this 
information passes 
from *List controls to their item renderers via the intermediate *ListData. 

>From the doc I find such correspondence: 
List..labelField <-> ListData.labelField
DataGridColumn. dataField <-> DataGridListData. dataField

However I can not find such a correspondence between Tree and TreeListData 
along the 
lines. There is no labelField property in TreeListData and TreeListData is not 
a subclass of 
ListData as I guess(Tree is a subclass of List so it inherits the labelField 
property).

Due to the lack of property correspondence between Tree and TreeListData, I 
can't see what 
this path is exactly. 

 


      

Reply via email to