1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

Docs: row() and rows() API documentation

This commit is contained in:
Allan Jardine 2013-11-19 13:54:02 +00:00
parent 8dcdb94b15
commit 8919616833
2 changed files with 5 additions and 4 deletions

View File

@ -1 +1 @@
a050abb843458cc9cf7725d4ccce7bb367e82c3e
39706899b20912b09581cc44ef838d469ab4e2fa

View File

@ -7361,7 +7361,7 @@
} );
_api_register( 'rows().data()', function ( data ) {
_api_register( 'rows().data()', function () {
return this.iterator( true, 'rows', function ( settings, rows ) {
return _pluck_order( settings.aoData, rows, '_aData' );
} );
@ -7369,7 +7369,8 @@
_api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {
return this.iterator( 'row', function ( settings, row ) {
return type === 'search' ? row._aFilterData : row._aSortData;
var r = settings.aoData[ row ];
return type === 'search' ? r._aFilterData : r._aSortData;
} );
} );
@ -7380,7 +7381,7 @@
} );
_api_registerPlural( 'rows().indexes()', 'row().index()', function ( src ) {
_api_registerPlural( 'rows().indexes()', 'row().index()', function () {
return this.iterator( 'row', function ( settings, row ) {
return row;
} );