libj-vue-comp-pagination
v1.0.0
Published
xxx
Downloads
2
Readme
libj-vue-comp-pagination
Part of libj tools
xxx
Usage
npm install libj-vue-comp-pagination
import 'libj-vue-comp-pagination'
//Now, j-pagination is available globally
j-pagination
props
- maxVisibleButtons (Number) | default: 3 number of buttons between first and last
- totalRecords (Number) | default: null total number of records
- perPage (Number) | default: null number of items for each page
- currentPage (Number) | default: null current page. page numbers start from 1. You must bind this to a variable and update that variable when pageChanged event fires
events
- pageChanged(page) is called when page changes
Test
- Run this in a separate command line to start node server
node server.js
- Run one of the following to re-create bundles
npm run dev
npm run dev:watch
- Navigate to http://localhost:3000
Build
npm run build
npm run build:watch