Edit this page

enable

Changes the enabled state of the widget.

Parameters

enable Boolean

Whether to enable or disable the widget.

Example

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

<script>
    var app = new kendo.mobile.Application();
    function onChange() {
        $("#foo").data("kendoMobileButton").enable(this.check());
    }
    function onClick() {
        console.log("click");
    }
</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