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:

  • widget: Picker
  • selection: string, the new value of selection.
  • options: Object

Fired when the selection property changes.

“change:selectionIndex” (widget, selectionIndex, options)

Parameters:

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.

See also