doodle
Toggle table of contents
0.12.0
common
Target filter
common
Switch theme
Search in API
Skip to content
doodle
Controls
/
io.nacular.doodle.controls.form
/
switch
switch
fun
switch
(
label
:
View
)
:
FieldVisualizer
<
Boolean
>
(
source
)
Creates a
Switch
control that is bound to a
Field
(of type
Boolean
).
Parameters
label
used to annotate the switch
fun
switch
(
text
:
AnnotatedString
)
:
FieldVisualizer
<
Boolean
>
(
source
)
fun
switch
(
text
:
String
)
:
FieldVisualizer
<
Boolean
>
(
source
)
Creates a
Switch
control that is bound to a
Field
(of type
Boolean
).
Parameters
text
used to annotate the switch