how to show less than 10 rows in datatable?

QuestionsCategory: JQueryhow to show less than 10 rows in datatable?
devchandan Staff asked 3 months ago

How to show less than 10 rows in dataTable ?

1 Answers
matrix Staff answered 3 months ago

Use this below code, Hope this will solve your problem.

$('#example').dataTable( {   

   "pageLength": 50


} );

 

for more details,
https://datatables.net/reference/option/pageLength
https://datatables.net/forums/discussion/46346/how-to-show-less-than-10-rows