Content-Length: 88114 | pFad | http://www.telerik.com/kendo-react-ui/components/inputs/switch/controlled-switch

React Inputs Switch Controlled Mode - KendoReact
New to KendoReactLearn about KendoReact Free.

Controlled Mode

By default, the Switch is in an uncontrolled state.

To manage the state of the Switch, use its checked property, handle the onChange event, and pass the new value through the props.

jsx
<Switch
    onChange={(event) => { this.setState({checked: event.target.value}) }}
    checked={this.state.checked}
/>

Manual Switch Toggle

The following example demonstrates how to manually toggle the Switch.

Change Theme
Theme
Loading ...

Read-Only Switch

The following example demonstrates how to implement a read-only Switch.

Change Theme
Theme
Loading ...
In this article
Manual Switch ToggleRead-Only SwitchSuggested Links
Not finding the help you need?
Contact Support








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.telerik.com/kendo-react-ui/components/inputs/switch/controlled-switch

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy