
Combo is a combination of a text field and a list drop down.
Slots
- dropDown
-
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.
- editable
-
const Bool editable := false
Set to true to display editing of the combo's text field.
- font
-
Font font := null
Font for text. Defaults to null (system default).
-
static internal Str fontId := "font"
-
static internal Str getTextId := "getText"
- items
-
Obj[] items := Obj[,]
The list selection items displayed via
Obj.toStr
. Defaults to the empty list. -
static internal Str itemsId := "items"
- onAction
-
|Event| onAction
Callback when Return/Enter key is pressed.
- onModify
-
|Event| onModify
Callback when either the text field or item is changed.
-
static internal Str setTextId := "setText"
- text
-
Str text
The widget's current text