Edit this page

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() {
        console.log(app.view()); // the foo mobile view instance
    }
</script>

Returns

kendo.mobile.ui.View the view instance.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy