Combo is a combination of a text field and a list drop down.
Slots
- dropDownSource
-
const Bool dropDown := true
If true then the list is displayed in a drop down window. If false then the list is displayed directly under the text field. Default is true.
- editableSource
-
const Bool editable := false
Set to true to display editing of the combo's text field. Default is false.
- fontSource
-
native Font? font
Font for text. Defaults to null (system default).
- indexSource
-
Get the index of the specified item. Items are matched to indices via
Obj.equals
. Seesys::List.index
. - itemsSource
-
native Obj[] items
The list selection items displayed via
Obj.toStr
. Defaults to the empty list. - onActionSource
-
readonly EventListeners onAction := EventListeners()
Callback when Return/Enter key is pressed.
Event id fired:
Event fields:
- none
- onModifySource
-
readonly EventListeners onModify := EventListeners()
Callback when either the text field or item is changed.
Event id fired:
Event fields:
- none
- selectedSource
-
Obj? selected
The currently selected item. Items are matched to the items list using index.
- selectedIndexSource
-
native Int? selectedIndex
The currently selected index of items or null if no selection.
- textSource
-
native Str text
The widget's current text. Defaults to "".