1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-20 18:54:15 +01:00

New: columns().data() API method - get the data for the selected columns

This commit is contained in:
Allan Jardine 2013-04-28 09:05:03 +01:00
parent 68ea9af828
commit 8e1bf972d4

View File

@ -52,5 +52,19 @@ _api.register( 'columns().cells()', function () {
} );
/**
*
*/
_api.register( 'columns().data()', function () {
return this.iterator( true, 'column-rows', function ( settings, column, i, j, rows ) {
var a = [];
for ( var row=0, ien=rows.length ; row<ien ; row++ ) {
a.push( _fnGetCellData( settings, rows[row], column, '' ) );
}
return a;
} );
} );
}());