Is there a way to show more rows via the API?
Is there a way to show more rows via the API?
For example,
I want to change the HTML inside the default label:
<label>Show <select name="example_length" aria-controls="example" class=""><option value="10">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option></select> entries</label>
to be without "Show" and "entries". But when I try to update HTML by means of substring in javascript, the selected option values no longer work. Selecting 10, 25, etc don't update the number of rows listed. Can I add my own label/select and call the "show more rows" option from the API directly? I am using DataTables 1.10.15 with Responsive r-2.1.1
This question has accepted answers - jump to:
Answers
Presumably you can apply blanks for "Show" and "entries" using the language option:
https://datatables.net/reference/option/language.lengthMenu
Yes, just use
"lengthMenu": "_MENU_"
to have it show only theselect
.Allan