Closed CrazyFlasher closed 6 years ago
The quick and dirty way to do it is to use an AddOnFunctionStyleProvider:
itemRenderer.styleProvider = new AddOnFunctionStyleProvider(itemRenderer.styleProvider, function(itemRenderer:DefaultListItemRenderer):void
{
itemRenderer.iconLabelSelectedFontStyles = itemRenderer.iconLabelFontStyles;
});
If you want to follow best practices, it would be better to add a new style name to the theme.
... In below case
itemRenderer.iconLabelFontStyles
is null. What is the best way to solve current problem?