ViewPager

A View pager is a swipeable and scrollable element that let's you navigate between pages in the same html file.

Creation

<view-pager></view-pager>

Attributes

NameValueDescription

looped

Boolean

If set to true, the ViewPager will move to the first or last available page when reaching the end of the ViewPager.

sensitivity

Number

The sensitivity of scrolling to go to a new page in the ViewPager.

pageIndex

The current shown page, if the value changes the page changes.

Number (index of the page)

Events

NameDetailDescription

pageChange

HTMl element, pageIndex

Fires when the user changes a page with the ViewPager element.

Last updated