We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am trying to allow my end user to select the number of results shown per page. How would I do this?
At the moment I have this code:
var numberOfItems = 3; var options = { valueNames: ['name', 'type', 'difficulty'], page: numberOfItems, plugins: [ ListPagination({}) ] }; var userList = new List('search', options);
$('.changePages').on("click",function(){ numberOfItems = 2; userList.update(); }
This should update the pagination as far as I am aware but nothing happens when I click my button with the changePages class.
The text was updated successfully, but these errors were encountered:
Same problem here. Did you find a solution? I need to refresh the page so the new configuration takes effect.
Sorry, something went wrong.
Try this:
$('.changePages').on("click",function(){ userList.page = 2; userList.update(); }
No branches or pull requests
Hi,
I am trying to allow my end user to select the number of results shown per page. How would I do this?
At the moment I have this code:
var numberOfItems = 3;
var options = {
valueNames: ['name', 'type', 'difficulty'],
page: numberOfItems,
plugins: [
ListPagination({})
]
};
var userList = new List('search', options);
$('.changePages').on("click",function(){
numberOfItems = 2;
userList.update();
}
This should update the pagination as far as I am aware but nothing happens when I click my button with the changePages class.
The text was updated successfully, but these errors were encountered: