type

Button

src @Js
class Button : Elem

Button is a widget that invokes an action when pressed.

See also: docDomkit, ToggleButton, ListButton

constructors

fields

methods

onAction

Callback when button action is invoked.

onPopup

Callback to create Popup to display when button is pressed.

openPopup

Programmatically open popup, or do nothing if no popup defined.

Slot Details

enabled

src virtual override Bool? enabled

make

src new make()

onAction

src Void onAction(|This| f)

Callback when button action is invoked.

onPopup

src Void onPopup(|Button->Popup| f)

Callback to create Popup to display when button is pressed.

openPopup

src Void openPopup()

Programmatically open popup, or do nothing if no popup defined.