A switch widget.
The dxSwitch widget is a switch that can have an on or off state.
This widget, like any other DevExtreme UI widget, can be created using one of three possible approaches: jQuery, Knockout or AngularJS. The following code demonstrates how to create the dxSwitch widget using the Knockout approach.
The current widget state is specified by the value configuration option. Declare an observable variable and pass it to the value option to update the variable value each time a switch state changes.
var switchState = ko.observable(false);
An object defining configuration options for the dxSwitch widget.
This section describes methods that can be used to manipulate a widget.
This section describes events fired by this component.