I was wondering what the difference between data and listData in itemRenderers in flex. I have worked with data in all of my itemRenderers.
Basically I want to know when to use which, where each gets set and if I can use them together?
Note that I am asking from a Flex3 point of view.
datais the data that the renderer should display. Use it to work with the original data currently assigned to the renderer.listDatais an additional object to provide you with information about the role of the renderer in the list (rowIndex, columnIndex, list component, uid, …). Use it to perform some UI related operations such as formatting the first row differently or rows alternating depending on their vertical index, calling the list view component, etc.