DevExtreme jQuery/JS - Overview
The Switch is a widget that can be in two states: "On" (when value is true) and "Off" (when value is false).
The following code adds the Switch to your page.
HTML
JavaScript
<div id="switchContainer"></div>
$(function() { $("#switchContainer").dxSwitch({ value: true }); });
See Also
- Configure a Widget: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
- Switch - Handle the Value Change Event
- Switch - Keyboard Support
- Switch API Reference
Feedback