mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
New: columns().nodes() and column().nodes() methods
- Previously there was columns().cells() and column().cells(), but these
were removed in f0a73ce
due to the changes for the new top level
cell() and cells() selector methods.
- This commit effectively re-instates those functions but under the
`nodes()` name, matching the row and cell selection options. This is
for completeness in the API.
This commit is contained in:
parent
4e04d1e977
commit
338b5e81cf
8
media/js/jquery.dataTables.js
vendored
8
media/js/jquery.dataTables.js
vendored
@ -7736,6 +7736,14 @@
|
||||
} );
|
||||
|
||||
|
||||
_api.registerPlural( 'columns().nodes()', 'columns().nodes()', function () {
|
||||
return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
|
||||
return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
|
||||
_api.registerPlural( 'columns().visible()', 'column().visible()', function ( vis ) {
|
||||
return this.iterator( 'column', function ( settings, column ) {
|
||||
return _setColumnVis( settings, column, vis );
|
||||
|
@ -110,6 +110,14 @@ _api.registerPlural( 'columns().data()', 'column().data()', function () {
|
||||
} );
|
||||
|
||||
|
||||
_api.registerPlural( 'columns().nodes()', 'columns().nodes()', function () {
|
||||
return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
|
||||
return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
|
||||
_api.registerPlural( 'columns().visible()', 'column().visible()', function ( vis ) {
|
||||
return this.iterator( 'column', function ( settings, column ) {
|
||||
return _setColumnVis( settings, column, vis );
|
||||
|
Loading…
Reference in New Issue
Block a user