The Switch enables you to control the title of its labels.

Setting Up the Titles

To set the behavior of the labels, use the onLabel and offLabel properties, which accept string parameters.

  • The Switch does not support long custom labels.
    selector: 'my-app',
    template: `

class AppComponent {
    public checked: boolean = false;

Styling the Labels

By design, the Switch does not render any labels when the component is styled with the Kendo UI Bootstrap theme. To change the default setup and achieve any of the additional predefined layouts, refer to the article on changing the Switch layout in the kendo-themes Wiki. For more information, refer to issue #567.

In this article