Topic: MDB filter pagination

Danny priority asked 2 years ago


How do I add pagination to filters? The same like datatable/tableeditor.


Grzegorz Bujański staff answered 2 years ago


Note that this is a front-end solution. Rather, you don't want to download 10,000 articles at once. So you will only use the basic functionality of the plugin in the case of a website with a small number of products. In the case of such a large number of products, you will use more advanced options.

You can add pagination to this plugin available here: https://mdbootstrap.com/docs/standard/navigation/pagination/ add listeners for clicking pagination and retrieving new items from the back-end. With the getActiveFilters method you can check what filters are currently applied and download the next few articles that meet these requirements. Then render new articles on the page. Look at this example: https://mdbootstrap.com/docs/standard/plugins/filters/#subsection-spinner-example This is a similar example to what you need to do. The difference is that you don't display the articles stored by the plugin, you just download them from the API.


Grzegorz Bujański staff answered 2 years ago


Unfortunately, there is no such option at the moment. I will add this to our list of ideas. We will discuss in the team the possibility of adding such an option.


Danny priority commented 2 years ago

Isn't this quite normal? You normally have such a filter in a webshop, who wants a single page with 10000 articles



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.2
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes