Class: SelectionBox

ui.SelectionBox

new ui.SelectionBox ()

Element representing a drop-down selection box.

Properties:
Name Type Description
emptyText string

(default: "") The text to show if the model is empty.

formatText function

A function (modelData, index) => <string> for creating the display text.

model html.ListModel

(default: ListModel { }) The list model holding the selection items. If the items are not strings, specify a formatText function.

selection number

(default: 0) The index of the currently selected item.

Example
SelectionBox {
    model: ListModel { data: ["One", "Two", "Three"] }
}

Extends