2.56. types.lua_combobox

dt_type

A widget with multiple text entries in a menu

This widget can be set as editable at construction time.

If it is editable the user can type a value and is not constrained by the values in the menu

2.56.1. types.lua_combobox.__call

see types.lua_widget.As a function

2.56.2. types.lua_combobox.value

string

The text content of the selected entry, can be nil

You can set it to a number to select the corresponding entry from the menu

If the combo box is editable, you can set it to any string

You can set it to nil to deselect all entries

Attributes:

2.56.3. types.lua_combobox.#

string

The various menu entries.

You can add new entries by writing to the first element beyond the end

You can removes entries by setting them to nil

2.56.4. types.lua_combobox.changed_callback

function( 
	widget : types.lua_widget
)

A function to call when the value field changes (character entered or value selected)

Attributes:
widget
types.lua_widget

The widget that triggered the callback

2.56.5. types.lua_combobox.editable

boolean

True is the user is allowed to type a string in the combobox

Attributes:

2.56.6. types.lua_combobox.label

string

The label displayed on the combobox

Attributes: