visible Boolean

Holds information about the current state of the Drawer. If it is currently opened then the visible field will be set to true.

Example - get the current Drawer state

<div data-role="view" id="drawer-settings" data-show="onShow">
    <h1>Settings</h1>
</div>

<div data-role="drawer" id="my-drawer">
    Hi!
</div>

<script>
new kendo.mobile.Application();
function onShow(){
    var isVisible = $('#my-drawer').getKendoMobileDrawer().visible;
    console.log(isVisible); //will output false
}
</script>
In this article
Not finding the help you need? Improve this article