User Guide

List component 217
A List component uses the following Halo styles:
Method summary for the List class
Style Description
alternatingRowColors
Specifies colors for rows in an alternating pattern. The value can be an
array of two or more colors, for example, 0xFF00FF, 0xCC6699, and
0x996699.
backgroundColor
The background color of the list. This style is defined on a class style
declaration, ScrollSelectList.
borderColor
The black section of a three-dimensional border or the color section of a
two-dimensional border.
borderStyle
The bounding box style. The possible values are: "none", "solid", "inset"
and "outset". This style is defined on a class style declaration,
ScrollSelectList.
defaultIcon
Name of the default icon to use for list rows. The default value is
undefined.
rollOverColor
The color of a rolled over row.
selectionColor
The color of a selected row.
selectionEasing
A reference to an easing equation (function) used for controlling
programmatic tweening.
disabledColor
The disabled color for text.
textRollOverColor
The color of text when the pointer rolls over it.
textSelectedColor
The color of text when selected.
selectionDisabledColor
The color of a row if it has been selected and disabled.
selectionDuration
The length of any transitions when selecting items.
useRollOver
Determines whether rolling over a row activates highlighting.
Method Description
List.addItem()
Adds an item to the end of the list.
List.addItemAt()
Adds an item to the list at the specified index.
List.getItemAt()
Returns the item at the specified index.
List.removeAll()
Removes all items from the list.
List.removeItemAt()
Removes the item at the specified index.
List.replaceItemAt()
Replaces the item at the specified index with another item.
List.setPropertiesAt()
Applies the specified properties to the specified item.
List.sortItems()
Sorts the items in the list according to the specified compare function.
List.sortItemsBy()
Sorts the items in the list according to a specified property.