Crate zng_wgt_toggle
source ·Expand description
Modules§
- Commands that control toggle.
Structs§
W
Checkmark toggle style.W
Popup toggle style.W
Default toggle style.W
Toggle light style.W
Radio toggle style.- Represents the contextual selector behavior of
value
selector. W
Switch toggle style.W
A toggle button that flips abool
orOption<bool>
variable on click, or selects a value.
Enums§
- Error for
Selector
operations.
Statics§
- Spacing between the checkmark and the content.
- Spacing between the arrow symbol and the content.
- If
value
is deselected when the widget that has the value is deinited and the value was selected. - If
value
deselects the previously selected value when the variable changes. - The toggle button checked state.
- If toggle button cycles between
None
,Some(false)
andSome(true)
on click. - Spacing between the radio and the content.
- If
value
scrolls into view when selected. - Contextual
Selector
. - If
value
is selected when the widget that has the value is inited. - If
value
selects the new value when the variable changes and the previous value was selected. - Contextual style variable.
- Spacing between the switch and the content.
Traits§
- Represents a
Selector
implementation.
Functions§
P
Spacing between the checkmark and the content.P
Toggle cycles betweentrue
andfalse
, updating the variable.P
Toggle cycles betweenSome(true)
andSome(false)
and acceptsNone
, if the widget istristate
also sets toNone
in the toggle cycle.P
Popup open when the toggle button is checked.P
Spacing between the arrow symbol and the content.P
Ifvalue
is deselected when the widget that has the value is deinited and the value was selected.P
Ifvalue
deselects the previously selected value when the variable changes.P
If the toggle is checked from any of the three primary properties.P
Spacing between the radio and the content.P
If the scrolls into view when thevalue
selected.P
Ifvalue
is selected when the widget that has the value is inited.P
Ifvalue
selects the new value when the variable changes and the previous value was selected.P
Sets the contextual selector that all inner widgets will target from thevalue
property.P
Extends or replaces the widget style.P
Spacing between the switch and the content.P
EnablesNone
as an input value.P
Values that is selected in the contextualselector
.