view

Get a reference to the current view.

Example

<div data-role="view" id="foo">
    <a id="button" data-role="button" data-click="logCurrentView">I am a mobile button</a>
</div>

<script>
    var app = new kendo.mobile.Application();
    function logCurrentView() {
/* The result can be observed in the DevTools(F12) console of the browser. */
        console.log(app.view()); // the foo mobile view instance
    }
</script>

Returns

kendo.mobile.ui.View the view instance.

In this article