Pagination
We took the Bootstrap pagination elements and customised them to fit the overall theme. Besides the classic look, we also added the colour classes to offer more customisation.
To use the custom radio buttons you need to import the custom made component:
import {Pagination} from 'src/components'
Global usage
Vue.component(Pagination.name, Pagination)
For local usage
export default {
components: {
[Pagination.name]: Pagination
}
}
Simple pagination with v-model
Colors
Pagination Props
Prop Name | Type | Default | Description |
---|---|---|---|
type | String | default | Pagination type (primary|info|danger|default|warning|success) |
pageCount | Number | N/A | Pagination page count. This should be specified in combination with perPage |
perPage | Number | 10 | Pagination per page. Should be specified with total or pageCount |
total | Number | N/A | Can be specified instead of pageCount. The page count in this case will be total/perPage |
value | Number | 1 | Pagination value |
Events
Event Name | Description | Parameters |
---|---|---|
input | triggers when the binding value changes (default for v-model) | the updated value |