How do we identify a component created in a repeater using flex? : adobe flex action script
Answer Posted / Satish Chandra Ram
In Flex, components created in a Repeater can be identified using the data property of the Repeater. Each repeated item has its own data object associated with it which contains the data that was used to create the item. For example: `<s:Repeater data="{myData}"> <s:ItemRenderer> <mx:Label text="{data.someProperty}" /> </s:ItemRenderer> </s:Repeater>` will give each label a different text depending on the someProperty of the data object for that particular item.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers