Edit this page

enable

Enables or disables the user interaction with the view and its contents.

Parameters

enable Boolean

Omitting the parameter or passing true enables the view. Passing false disables the view.

Example - disable a view

<div data-role="view" id="myView">
    <a data-role="button" data-click="disableView">Tap here</a>
</div>

<script>
function disableView() {
    $("#myView").data("kendoMobileView").enable(false);
}

new kendo.mobile.Application();
</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