Combo is a combination of a text field and a list drop down.
Slots
- dropDownSource
-
const Bool dropDown := trueIf 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 := falseSet to true to display editing of the combo's text field. Default is false.
- fontSource
-
native Font? fontFont 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[] itemsThe 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? selectedThe currently selected item. Items are matched to the items list using index.
- selectedIndexSource
-
native Int? selectedIndexThe currently selected index of items or null if no selection.
- textSource
-
native Str textThe widget's current text. Defaults to "".