Handbook
Glossary
<framed-labeled-gadget> ( content title color -- labeled )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Labeled gadgets
Prev:
<colored-labeled-gadget> ( content title color -- labeled )
Vocabulary
ui
.
gadgets
.
labeled
Inputs
content
a
gadget
title
a
string
color
a color
Outputs
labeled
a
labeled-gadget
Word description
Creates a new
labeled-gadget
displaying
content
with
title
on top, adding a
color
colored divider between title bar and content and a
labeled-border-color
frame.
Definition
USING:
accessors
ui.pens.solid
ui.theme
;
IN:
ui.gadgets.labeled
:
<framed-labeled-gadget>
( content title color -- labeled )
<colored-labeled-gadget>
labeled-border-color
<solid>
>>boundary
;