1.0.0 • Published 5 years ago

libj-vue-comp-pagination v1.0.0

Weekly downloads
3
License
ISC
Repository
-
Last release
5 years ago

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