Closed wilariz closed 7 years ago
+1
+1
i found solution in this SOF Link. in my case second solution worked as a charm :)
//refreshPagination
var refreshPagination = function(totalPages, visiblePages, clickCB) {
$('#pagination').empty().removeData("twbs-pagination").unbind("page").twbsPagination({
totalPages: totalPages,
visiblePages: visiblePages,
onPageClick: clickCB
});
}
//usage
// refreshPagination(15,5,function(event, page){
// alert(page);
// });
+1
Oh, you could try #66 , maybe it's a good idea.
Example added. See docs on github.io
Hello. I'm using the plugin and I have a feature of my web, the totalPages are dinamic, always incremental way, when change the totalPages I call to initialice the plugin but it never change, just kept the paginator initial with totalPages initial. Is there any way to refresh the paginator changing the totalPages? Thanks for your help. Greetings