Edit this page

prev

Switches to the previous page with animation.

Example

<div data-role="view">
  <div id="scrollView" data-role="scrollview">
    <div data-role="page">Foo</div>
    <div data-role="page">Bar</div>
    <div data-role="page">Baz</div>
    <div data-role="page">Bat</div>
  </div>
  <a data-role="button" data-click="prev">Next</a>
</div>

<script>
var app = new kendo.mobile.Application();

function prev() {
  var scrollview = $("#scrollView").data("kendoMobileScrollView");
  scrollview.prev();
}
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy