New to Kendo UI for jQueryStart a free 30-day trial

Messages

configuration

Defines the text of the checked and unchecked labels that are displayed within the Switch. All labels support localization.

The messages property is applicable only for the Default and Classic themes. All other themes, by design, do not show checked and unchecked messages.

messages

Object
<input id="switch" />

<script>
    $("#switch").kendoSwitch({
        messages: {
            checked: "on",
            unchecked: "off"
        }
    });
</script>

The label for the checked state of the Switch.

The messages property is applicable only for the Default and Classic themes. All other themes, by design, do not show checked and unchecked messages.

Default: "On"

<input id="switch" />

<script>
    $("#switch").kendoSwitch({
        messages: {
            checked: "YES"
        }
    });
</script>

The label for the unchecked state of the Switch.

The messages property is applicable only for the Default and Classic themes. All other themes, by design, do not show checked and unchecked messages.

Default: "Off"

<input id="switch" />

<script>
    $("#switch").kendoSwitch({
        messages: {
            unchecked: "NO"
        }
    });
</script>