In a previous example, “Preventing item selection in the Spark List control in Flex 4″, we saw how you can prevent item selection in the Spark List control in Flex 4 by listening for the changing event and calling the preventDefault() method on the IndexChangeEvent event object instance.
The following example shows how you can keep List item selection but prevent the selected item highlighting (while maintaining the hover highlight) in the Spark List control in Flex 4 by creating a custom item renderer, setting the autoDrawBackground property to false, and drawing your own highlight in the hover state only.
[click to continue…]
Tagged as:
autoDrawBackground,
Gumbo,
itemRenderer
The following example shows how you can prevent item selection in the Spark List control in Flex 4 by listening for the changing event and calling the preventDefault() method on the IndexChangeEvent event object instance.
[click to continue…]
Tagged as:
changing,
Gumbo,
preventDefault()
The following example shows how you can toggle the border visibility on a Spark List control in Flex 4 by setting the Boolean borderVisible style.
[click to continue…]
Tagged as:
borderVisible,
Gumbo
The following example shows how you can create a fancy Spark List control item renderer by setting the itemRenderer property.
Full code after the jump.
[click to continue…]
Tagged as:
fancy,
Gumbo,
itemRenderer