Closed psukys closed 6 years ago
you can implement code to jquery.twbsPagination.min.js by adding some code. Let find getCurrentPage function and insert this code after it.
getTotalPages:function(){return this.options.totalPages}
now you can get total pages by
pagination.twbsPagination('getTotalPages');
I have implemented this method into 'master', and it will be available in 1.4.2 tag on August 1, 2018.
As far as I managed to find, there's only a way to retrieve current page through:
Is there a way to do this, or should there be an extension like: