The mixitup.Mixer class is extended with the following methods relating to
the Pagination extension.
For the full list of methods, please refer to the MixItUp core documentation.
paginate()
.paginate(page [, animate] [, callback])
|
Type |
Name |
Description |
@param |
number, string, object, HTMLElement |
page |
A page number, string ('next' , 'prev' ), HTML element reference, or command object.
|
@param |
boolean |
[animate] |
An optional boolean dictating whether the operation should animate, or occur syncronously with no animation. true by default.
|
@param |
function |
[callback] |
An optional callback function to be invoked after the operation has completed.
|
@return |
Promise.<mixitup.State> |
|
A promise resolving with the current state object. |
Changes the current page and/or the current page limit.
nextPage()
.nextPage()
|
Type |
Name |
Description |
@return |
Promise.<mixitup.State> |
|
A promise resolving with the current state object. |
A shorthand for .paginate('next')
. Moves to the next page.
prevPage()
.prevPage()
|
Type |
Name |
Description |
@return |
Promise.<mixitup.State> |
|
A promise resolving with the current state object. |
A shorthand for .paginate('prev')
. Moves to the previous page.