-
Notifications
You must be signed in to change notification settings - Fork 399
VuetablePaginationMixin
This mixin provides sliding style pagination functionality where the current page (when not at the first or last position) is always in the middle of pagination list.
-
type: Object
-
default:
{ wrapperClass: 'ui right floated pagination menu', activeClass: 'active large', disabledClass: 'disabled', pageClass: 'item', linkClass: 'icon item', paginationClass: 'ui bottom attached segment grid', paginationInfoClass: 'left floated left aligned six wide column', dropdownClass: 'ui search dropdown', icons: { first: 'angle double left icon', prev: 'left chevron icon', next: 'right chevron icon', last: 'angle double right icon', } }
-
description
The
css
property holds most of the CSS classes that VuetablePagination uses in its template.
-
type: Number
-
default:
2
-
description
The value of this property specifies the slide size on each side of the center.
-
return: Number
-
description
The total number of available pages. This value is taken from the
last_page
field of pagination information.
-
return: Boolean
-
description
Returns
true
if the current page number is the first page; otherwise, returnsfalse
.
-
return: Boolean
-
description
Returns
true
if the current page number is the last page; otherwise, returnsfalse
.
-
return: Boolean
-
description
Determine if the total number of pages is enough to be displayed without sliding.
-
return: Number
-
description
The size of the sliding window calculating from
on-each-side
* 2 + 1.
-
return: Number
-
description
Return the first page number to be shown on the leftmost.
-
type: Object
-
default:
null
The pagination information received from Vuetable.
-
params:
- page: Number
-
description
Determine if the given page number is the current page.
-
params:
- tablePagination: Object -- pagination information
-
description
Setting the
tablePagination
data to be used when rendering pagination component.
-
params: none
-
description
This method will set
tablePagination
to null.
-
type: emit
-
payload:
- page: Number, String
-
description:
This event was fired when the user clicks on any pagination item requesting data for that given page number.