Edit this page

toggle

Toggle the checked state of the widget.

Example

<div id="foo" data-role="view">
  <input id="switch" type="checkbox" data-role="switch" />
  <a data-role="button" data-click="onClick">Toggle</a>
</div>

<script>
var app = new kendo.mobile.Application();

function onClick() {
  var switchInstance = $("#switch").data("kendoMobileSwitch");
  // toggle the checked state of the switch.
  switchInstance.toggle();
}
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy