@alkeincodes/vuejs-pagination
a simple pagination component made for VueJS
849
2
| Install | |
|---|---|
npm install @alkeincodes/vuejs-pagination |
|
| Latest Version: | 1.1.2 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Feb 24, 2024 |
| Links: | GitHub · npm |
Maintainer: alkeinaiduko
vuejs-pagination
a simple pagination component made for VueJS
See it in action
Install package
npm install @alkeincodes/vuejs-pagination --save
Register the component globally ES6
import Pagination from '@alkeincodes/vuejs-pagination'
import '@alkeincodes/vuejs-pagination/dist/app.css'
Vue.use(Pagination)
CDN
Include the source file.
<!-- use the latest release -->
<script src="https://unpkg.com/@alkeincodes/vuejs-pagination@latest"></script>
Usage
<pagination :pages="20" :current-page="1" :per-page-size="5" @switch-page="myFunction" />
Props
first-label:String| Optionallast-label:String| Optionalpages:Number| Required | Total number of pagescurrent-page:Number| Required | Current highlighted page numberper-page-size:Number| Required | Page number shownshow-tray:Boolean| Optional | Show the Previous and Next Page Trayshas-vue-router:Boolean| Optional | If you have vue-router installed, this will help you push the current page number in to your route
Event
switch-page: triggers after selecting a page
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.2 | ^2.6.11 | MIT | |
| 1.1.1 | ^2.6.11 | ||
| 1.1.0 | ^2.6.11 | ||
| 1.0.9 | ^2.6.11 | ||
| 1.0.8 | ^2.6.11 | ||
| 1.0.7 | ^2.6.11 | ||
| 1.0.6 | ^2.6.11 | ||
| 1.0.5 | ^2.6.11 | ||
| 1.0.4 | ^2.6.11 | ||
| 1.0.3 | ^2.6.11 | ||
| 1.0.2 | ^2.6.11 | ||
| 1.0.1 | ^2.6.11 | ||
| 1.0.0 | ^2.6.11 |