1
0
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:
Allan Jardine 2013-06-25 08:27:49 +01:00
parent 4e04d1e977
commit 338b5e81cf
2 changed files with 16 additions and 0 deletions

View File

@ -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 );

View File

@ -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 );