virtual class domkit::ListButton

sys::Obj
  dom::Elem
    domkit::Button
      domkit::ListButton

@Js

Source

ListButton allows user selection of an item in a list by showing a listbox popup on button press.

See also: docDomkit, Button, ToggleButton

items

List<Obj> items := List<>.defVal

Source

The current list items.

make

new make()

Source

onElem

Void onElem(Func<Obj,Obj> f)

Source

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.

onSelect

Void onSelect(Func<Void,This> f)

Source

Callback when selected item has changed.

sel

Selection sel { private set }

Source

Selection for list.