Select Method (SparkListBase)

Action

Dispatched when an item in the list is selected.

Syntax

C#
listBase.Select(itemRenderer, [triggerEvent, keyModifier])
VB
listBase.Select(itemRenderer, [triggerEvent, keyModifier])
Variable Description
itemRenderer The itemRenderer for the item which got selected. String.
triggerEvent Optional: Whether the event was triggered by mouse or keyboard.. FlexTriggerEvent.
keyModifier Optional: A constant that indicates which key or key combination, if any, was pressed while this operation took place. One of: flexAlt, flexControl, flexControlAlt, flexControlShift, flexControlShiftAlt, flexShift, or flexShiftAlt. For example, if the Shift and Alt keys were pressed, then the value would be flexShiftAlt. ModifierKeys.

Examples

VB

For example, you might select an item in a list box by typing:
	listBox.Select("apple")