Handbook
Glossary
<label-control> ( model -- gadget )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Label gadgets
Prev:
<label> ( string -- label )
Next:
>label ( obj -- gadget )
Vocabulary
ui
.
gadgets
.
labels
Inputs
model
a
model
Outputs
gadget
a new
gadget
Word description
Creates a control which displays the value of
model
, which is required to be a string. The label control is automatically updated when the model value changes.
See also
<label>
Definition
USING:
accessors
kernel
;
IN:
ui.gadgets.labels
:
<label-control>
( model -- gadget )
""
label-control
new-label
swap
>>model
;