Picker
A widget with a drop-down list of items to choose from. Includes Widget API
Properties
items
Type: string[]
selection
Type: string
selectionIndex
Type: number
Events
“change:selection” (widget, selection, options)
Parameters:
Fired when the selection property changes.
“change:selectionIndex” (widget, selectionIndex, options)
Parameters:
- widget: Picker
- selectionIndex: number, the new value of selectionIndex.
- options: Object
Fired when the selectionIndex property changes.
“select” (widget, selection, options)
Parameters:
- widget: Picker
- selection: string, the new value of selection.
- options: Object, contains the index of the selected item, e.g.
{index: number}
Fired an item was selected by the user.