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.

    <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;
    /* The result can be observed in the DevTools(F12) console of the browser. */
        console.log(isVisible); //will output false
    }
    </script>
In this article