I have a fl.controls.List that I am populating with values. I would like certain rows to be of a different color. For example, either red or green.
Is there a way of specifying that a particular row should use a particular skin?
I have the skins imported into my project inside a swc and so they can be easily accessed. I’m having trouble finding any reference to a particular row of a list though.
The solution was to create a custom
CellRendererclass that overrides theonDrawBackgroundmethod.You then can set the cell renderer by doing
list.setStyle('cellRenderer', MyCellRenderer)