I have an item renderer for a list containing an image, label and a checkbox.
These are visible depending on the dataProvider property of the list.
E.g if an image is a premium image then display the premium label, if an image is a favourite then display a star etc.
The problem is i have a massive if statement, and this doesn't seem good practice.
So how can i seperate the logic from the display components?
Thanks