Handbook
Glossary
<model-field> ( model -- gadget )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Editor gadgets
Prev:
<multiline-editor> ( -- editor )
Next:
<action-field> ( quot: ( string -- ) -- gadget )
Vocabulary
ui
.
gadgets
.
editors
Inputs
model
a
model
Outputs
gadget
an
editor
Word description
Creates an editor gadget which targets the specified model. The model must contain a string, or another item with a defined
length
, as this will be checked during layout.
Definition
USING:
accessors
kernel
;
IN:
ui.gadgets.editors
:
<model-field>
( model -- gadget )
model-field
new-field
swap
>>field-model
;