I am using JQuery Datatable: 1.10.7 and https://datatables.net/reference/option/lengthMenu
JS code:
$('.table').dataTable({
'lengthMenu': [ [10, 25, 50, -1], [10, 25, 50, 'All'] ],
'aoColumns': [null, null, null, { 'bSortable': false }, { 'bSortable': false }] }); // eslint-disable-line new-cap
But I need the following list to set page length:
How to do? Anything missing?
UPDATE
Output html:
<div id="DataTables_Table_0_length" class="dataTables_length">
<label>
Show
<select class="" aria-controls="DataTables_Table_0" name="DataTables_Table_0_length">
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="-1">All</option>
</select>
entries
</label>
</div>
But it is not shown at all.
UPDATE
The reason is:
.dataTables_length {
display: none;
}