@dandomanos/vue-client-pagination
v0.0.5
Published
Easy Vue client pagination
Downloads
3
Readme
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/