Lots of discussion out there about making each line some different color in a ComboBox. But it is really simple — just not well explained.

comboBoxInstance.setStyle("alternatingRowColors", [0xff0000, color 2, color 3, ...]);

‘Alternating’, in this case, really means “use a list of colors, and repeat the list if there are more lines than colors”.

Advertisements