type

Button

@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

virtual override Bool? enabled

make

new make()

onAction

Void onAction(|This| f)

Callback when button action is invoked.

onPopup

Void onPopup(|Button->Popup| f)

Callback to create Popup to display when button is pressed.

openPopup

Void openPopup()

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