npm.io
1.0.0 • Published 7 years ago

libj-vue-comp-pagination

Licence
ISC
Version
1.0.0
Deps
2
Size
423 kB
Vulns
0
Weekly
0

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

Build

npm run build
npm run build:watch