class

Button

@Js
class Button : Elem

Button is a widget that invokes an action when pressed.

See also: docDomkit, ToggleButton, ListButton

constructors make

fields enabled

methods onAction

Callback when button action is invoked

openPopup

Programmatically open popup, or do nothing if no popup defined

onPopup

Callback to create Popup to display when button is pressed

enabled virtual 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.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST