vaah-vue-pagination
v1.1.5
Published
> Laravel Pagination Vue.js Component
Readme
vaah-vue-pagination
Laravel Pagination Vue.js Component
Please consider starring the project to show your :heart: and support.
Install
Install with npm:
npm i vaah-vue-paginationRegister the component
import Vue from 'vue'
import VaahVuePagination from 'vaah-vue-pagination'
Vue.component('vh-pagination', VaahVuePagination)You can pass following props to the vue components:
<vh-pagination
framework="bulma"
:data="laravelData"
:onPageChange="getLaravelData"
></vh-pagination>In vue, you will get page variable.
...
methods: {
// Our method to GET results from a Laravel endpoint
getLaravelData(page = 1) {
}
}
...Development Environment
- Clone the repo
- Run
npm install - Run
npm run serve
Publish the package
- Change version in
package.json - Run
npm run build - Run
npm publish
Support us
WebReinvent is a web agency based in Delhi, India. You'll find an overview of all our open source projects on github.
License
The MIT License (MIT). Please see License File for more information.
Credits:
- To generate vue npm package: https://github.com/team-innovation/vue-sfc-rollup
