Edit this page

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) {
 console.log($("#my-pane").data("kendoMobilePane").view());
}
</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