Handbook
Glossary
Label gadgets
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
Next:
Border gadgets
The
ui
.
gadgets
.
labels
vocabulary implements labels. A label displays a piece of text, which is either a single line string or an array of line strings.
label
<label>
( string -- label )
<label-control>
( model -- gadget )
Labels have a virtual slot named
string
which contains the displayed text. The
text
slot should not be set directly.
Label specifiers are used by buttons, checkboxes and radio buttons:
>label
( obj -- gadget )