type

Combo

src @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

src virtual override Bool? enabled

field

src TextField field { private set }

TextField component of Combo.

items

src Str[] items

The current list items for Combo.

make

src new make()

onElem

src 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.