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:
parent
68ea9af828
commit
8e1bf972d4
@ -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;
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
}());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user