>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 and outputs
obja label specifier
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