Switch
Content Type: Widget
Categories: Data
Overview
Download this widget if you're looking for mobile-friendly switch/toggle elements for setting a boolean attribute in your app. Supports both iOS and Android-style switches.
Documentation
Releases
Version: 4.2.2
Framework Version: 9.6.0
Release Notes: ### Changed
- Changed action required to false to avoid unnecessary warnings in the Studio Pro.
Version: 4.2.1
Framework Version: 9.6.0
Release Notes: ### Fixed
- We removed redundant code to improve widget load time in the browser.
Version: 4.2.0
Framework Version: 9.6.0
Release Notes: ### Changed
- We updated page explorer's caption to display datasource.
- We updated the light and dark icons and tiles for the widget.
Version: 4.1.0
Framework Version: 9.6.0
Release Notes: ### Added
- We added dark mode to Structure mode preview.
- We added dark icons for Tile and List view.
Version: 4.0.0
Framework Version: 9.6.0
Release Notes: ### Added
- We added a toolbox category and toolbox tile image for Studio & Studio Pro.
Version: 3.0.0
Framework Version: 9.0.5
Release Notes: Added:
- Add `Brand Secondary` `Style` design-property option.
- Add `aria-readonly` for improved accessibility.
Changed:
- Use `div` instead of `small` for improved semantics.
- Convert `Style` and `Device style` properties to design-properties.
- Label property converted to system property and moved to common tab.
- Editability property converted to system property and moved to common tab.
Removed:
- Removed `input` element.
- Removed `info` and `inverse` `Style` property options.
- Removed label width property.
Version: 2.1.3
Framework Version: 7.13.1
Release Notes: Improvements
- We improved the accessibility of Switch widget, now the widget is accessible through Screen Readers and also keyboard friendly. It fixes ticket #96945
Version: 2.1.2
Framework Version: 7.13.1
Release Notes: ### Bug Fix ###
- We fixed a deprecation warning when switching the value
Version: 2.1.1
Framework Version: 7.13.1
Release Notes: The label has an improved alignment with the switch
Version: 2.1.0
Framework Version: 7.13.1
Release Notes: - Add support for on change nanoflow
- When the widget is inside a popup, the change microflow can now close a popup.