mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-19 12:52:11 +01:00
Update - init options: Rename displayLength to pageLength for consistency
- The displayLength option is poorly named, particularly with the new API refering to it as the page length (page.len()) so, using the new translation option to allow backwards compatiblity while using new parameter names, I've updated this parameter's name and its documentation.
This commit is contained in:
parent
7119dfa50c
commit
8a5712b7e9
@ -1 +1 @@
|
||||
9cb6d52a9a3e57a2327bc987d905ef8a55a3846b
|
||||
42f10dbe19b05e02886b82288f1ce7cdc83df0e0
|
||||
|
9
media/js/jquery.dataTables.js
vendored
9
media/js/jquery.dataTables.js
vendored
@ -393,6 +393,7 @@
|
||||
_fnCompatMap( init, 'orderFixed', 'aaSortingFixed' );
|
||||
_fnCompatMap( init, 'paging', 'bPaginate' );
|
||||
_fnCompatMap( init, 'pagingType', 'sPaginationType' );
|
||||
_fnCompatMap( init, 'pageLength', 'iDisplayLength' );
|
||||
_fnCompatMap( init, 'searching', 'bFilter' );
|
||||
}
|
||||
|
||||
@ -9143,8 +9144,8 @@
|
||||
* position as the value, and the array in the second position as the
|
||||
* displayed options (useful for language strings such as 'All').
|
||||
*
|
||||
* Note that the `displayLength` property will be automatically set to the
|
||||
* first value given in this array, unless `displayLength` is also provided.
|
||||
* Note that the `pageLength` property will be automatically set to the
|
||||
* first value given in this array, unless `pageLength` is also provided.
|
||||
* @type array
|
||||
* @default [ 10, 25, 50, 100 ]
|
||||
*
|
||||
@ -10176,12 +10177,12 @@
|
||||
* @default 10
|
||||
*
|
||||
* @dtopt Options
|
||||
* @name DataTable.defaults.displayLength
|
||||
* @name DataTable.defaults.pageLength
|
||||
*
|
||||
* @example
|
||||
* $(document).ready( function() {
|
||||
* $('#example').dataTable( {
|
||||
* "displayLength": 50
|
||||
* "pageLength": 50
|
||||
* } );
|
||||
* } )
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user