<button> ( label quot: ( button -- ) -- button )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Button gadgets

Prev:button
Next:<roll-button> ( label quot: ( button -- ) -- button )


Vocabulary
ui.gadgets.buttons

Inputs
labela gadget
quota quotation with stack effect ( button -- )


Outputs
buttona new button


Word description
Creates a new button which calls the quotation when clicked. The given gadget becomes the button's only child.

See also
<border-button>, <command-button>, <roll-button>, <presentation>

Definition

: <button> ( label quot: ( button -- ) -- button )
button new-button ;