Topic: Pagination - Rows Per Page
                  
                  screamatthewind
                  pro
                  asked 7 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.
                
                  
                
                
                
              
              
            
                      
                      sundance
                      free
                        answered 6 years ago
                    
Is it an actual issue? The solution:
$(document).ready(function() {
  $('#example').DataTable( {
      "lengthMenu": [[5, 10, 20, -1], [5, 10, 20, "All"]]
} );
                    
                      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
                  
Damian Gemza staff commented 7 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