Fires when the state of the widget changes.

More information about the Kendo UI Application for mobile can be found in this article.

Event Data

e.checked Object

The checked state of the widget.

Handle mobile Switch change event

<div id="foo" data-role="view">
  <input id="switch" type="checkbox" data-role="switch" data-change="onChange" />

// the content of the document.body is used by default
var app = new;

function onChange(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(e.checked);//true of false
In this article