view

Get a reference to the current view.

Example

<div data-role="splitview">
  <div data-role="pane" data-init="showLoading" id="my-pane" data-loading="Wait!">
      <div data-role="view" id="foo">
        <a data-click="getView" data-role="button">Get View</a>
      </div>
    </div>
 </div>

<script>
new kendo.mobile.Application();

function getView(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
 console.log($("#my-pane").data("kendoMobilePane").view());
}
</script>

Returns

kendo.mobile.ui.View the view instance.

In this article