Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Pagination - Rows Per Page

screamatthewind pro asked 6 years ago


Do you know of an example of Pagination using MDB (Pro) Angular where the user can select the number of rows per page?  Seems like all of the examples have the number of rows per page hard-coded to 10.

Damian Gemza staff commented 6 years ago

Dear screamatthewind, You have to create some variable to hold your desired items per page number and initially bind to this variable some value - for example, 5. Find in the code every 10 occurrences, and replace it with your variable. And that's should be all. Best Regards, Damian

sundance free answered 5 years ago


Is it an actual issue? The solution:

$(document).ready(function() {
  $('#example').DataTable( {
      "lengthMenu": [[5, 10, 20, -1], [5, 10, 20, "All"]]
} );


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: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags