0.0.5 • Published 5 years ago

@dandomanos/vue-client-pagination v0.0.5

Weekly downloads
7
License
MIT
Repository
-
Last release
5 years ago

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

PropTypeDefaultDescription
itemsArray[]Items to be rendered
pageSizeNumber5Number of items by page
startIndexNumber0Page loaded on created

Key:

Add any key to scroll to first item on page loaded

Live demo

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