>label ( obj -- gadget )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Label gadgets

Prev:<label-control> ( model -- gadget )


Vocabulary
ui.gadgets.labels

Inputs
obja label specifier


Outputs
gadgeta new gadget


Word description
Convert the object into a gadget suitable for use as the label of a button. If obj is already a gadget, does nothing. Otherwise creates a label gadget if it is a string and an empty gadget if obj is f.

Definition


Methods