pageLength
Since: DataTables 1.10
Change the initial page length (number of rows per page).
Description
Number of rows to display on a single page when using pagination.
If lengthChange
is feature enabled (it is by default) then the end user will be able to override the value set here to a custom setting using a pop-up menu (see lengthMenu
).
Type
This option can be given in the following type(s):
Default
- Value:
10
Example
Show 50 records per page:
new DataTable('#myTable', {
pageLength: 50
});
Related
The following options are directly related and may also be useful in your application development.