Laravel Vue Pagination
A Vue.js pagination component for Laravel paginators that works with Bootstrap.
Requirements
Vue.js 2.x
Laravel 5.x
Bootstrap 3/4
Install
Usage
Register the component:
Use the component:
Customizing Prev/Next Buttons
Prev/Next buttons can be customized using the prev-nav
and next-nav
slots:
API
Props
Name | Type | Description |
---|---|---|
data |
Object | An object containing the structure of a Laravel paginator response. See below for default value. |
limit |
Number | (optional) Limit of pages to be rendered. Default 0 (unlimited pages) -1 will hide numeric pages and leave only arrow navigation. Any positive integer (e.g. 2 ) will define how many pages should be shown on either side of the current page when only a range of pages are shown (see below for example output). |
Default data