type

Combo

@Js
class Combo : Elem

Combo combines a TextField and ListButton into a single widget that allows a user to select from a list or manually enter a value.

See also: docDomkit

constructors

fields

enabled
field

TextField component of Combo.

items

The current list items for Combo.

methods

onElem

Callback to create an Elem representation for a given list item.

Slot Details

enabled

virtual override Bool? enabled

field

TextField field { private set }

TextField component of Combo.

items

Str[] items

The current list items for Combo.

make

new make()

onElem

Void onElem(|Obj->Obj| f)

Callback to create an Elem representation for a given list item. If function does not return an Elem instance, one will be created using toStr of value.