0 votes
in Onsen UI by
Switch Component in onsen ui

1 Answer

0 votes
by
Switch element can be used to toggle between two states. The toggle can be done either by tapping or dragging the element.

The checked prop is used to set the switch set to any one state by default.

Example:

<Ons.Switch checked={this.state.checked} onChange={this.handleSwitch} /> Gle can be done either by tapping or dragging the element. The checked prop is used to set the switch set to any one state by default.

Example:

<Ons.Switch checked={this.state.checked} onChange={this.handleSwitch} />

Related questions

0 votes
asked Feb 7, 2020 in Onsen UI by DavidAnderson
0 votes
0 votes
0 votes
asked Feb 7, 2020 in Onsen UI by DavidAnderson
...