Triple State Switch

TripleSwitch widget

The TripleSwitch Widget enables the rendering of switch toggle elements, providing users with an intuitive and interactive way to toggle between three states (off, mixed, on) within your application.

Test in Kitchen Sink (opens in a new tab)

Properties

PropertyTypeDescription
idstringID to be referenced later
onChangeactionCall Ensemble's built-in functions or execute code when the input changes. Note for free-form text input, this event only dispatches if the text changes AND the focus is lost (e.g. clicking on button)
valuestringSpecifying the value of your switch widget (off, mixed, on)
stylesobjectsee properties
leadingTextstringSets the text displayed before the checkbox
trailingTextstringSets the text displayed after the checkbox

styles

PropertyTypeDescription
activeColorinteger or stringSets the active color of the switch widget, starting with '0xFF' for full opacity. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange
inactiveColorinteger or stringSets the inactive color of the switch widget, starting with '0xFF' for full opacity. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange
mixedColorinteger or stringSets the mixed state color of the switch widget, starting with '0xFF' for full opacity. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange
activeThumbColorinteger or stringSets the active thumb color of the switch widget, starting with '0xFF' for full opacity. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange
inactiveThumbColorinteger or stringSets the inactive thumb color of the switch widget, starting with '0xFF' for full opacity. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange