Hi,
How can I change the page size of my bootstrap table with JavaScript? I tried:
$('#listing-accesses').bootstrapTable('refreshOptions', {
pageSize: 25
});
But it doesn't work and I don't have any error.
Use the selectPage method.. : See this: http://bootstrap-table.wenzhixin.net.cn/documentation/#methods
Thank you djhvscf, but it's not the page I want to change, it's the amount of rows showed per page that I want to adjust. (10, 25, 50, 100)
See this example: http://jsfiddle.net/djhvscf/e3nk137y/2222/
Remember that you have to set data-pagination="true"
If this is not the solution, reopen the issue!
This might too late from the last comment, however adding , as a table attr should sort it
data-page-size="25"
Most helpful comment
See this example: http://jsfiddle.net/djhvscf/e3nk137y/2222/