@dandomanos/vue-client-pagination

0.0.5 • Public • Published

vue-client-pagination

Easy documents pagination for Vue.

Install

$ yarn add @dandomanos/vue-client-pagination

Usage

// main.js
import VueClientPagination from '@dandomanos/vue-client-pagination'
Vue.use(VueClientPagination)
<!-- Vue template -->
<VueClientPagination key="vue-client-pagination" :items="items" :page-size="pageSize">
  <div slot-scope="item">
    {{ item }}
  </div>
</VueClientPagination>

Props

Prop Type Default Description
items Array [] Items to be rendered
pageSize Number 5 Number of items by page
startIndex Number 0 Page loaded on created

Key:

Add any key to scroll to first item on page loaded

Live demo

http://oafish-fan.surge.sh/

Package Sidebar

Install

npm i @dandomanos/vue-client-pagination

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

1.02 MB

Total Files

10

Last publish

Collaborators

  • dandomanos