Skip to main content

Module toggle

Module toggle 

Source
Expand description

Checkbox, switch and slider.

Enums§

Check
A checkbox’s value: a mixed selection is Indeterminate (a dash).

Functions§

checkbox
A checkbox bound to a bool.
checkbox_shown
The 16 px box and its label. Returns the response; clicked() means the caller should toggle (an indeterminate box becomes on).
checkbox_wrapped
A kit checkbox whose label wraps at the width it is given, for questions a sentence long (the assembly Save’s rows). checkbox lays its label out on one line, which widened a fixed-width dialog past the screen. A click on the box or on the text toggles it; the response covers both.
slider
A slider: a 4 px track with the accent filled part and a 14 px round handle, which shows a halo on hover and the value in a tooltip while dragging.
slider_shown
switch
A switch for an on/off setting that applies at once: a 32 x 18 track whose knob slides.
switch_shown
A switch drawn in a fixed state (the gallery) or disabled.