1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

New: column().visible() and columns().visible() now act as getters or

setters.

- See discussion thread 19653
This commit is contained in:
Allan Jardine 2014-02-25 09:23:08 +00:00
parent 4834aa26be
commit dcbea43baf
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
964addd063b9c201c9206e4fd21aed712c2dd42e
9e8608fd117a2f841b3db76e36bebe06e635667f

View File

@ -7929,7 +7929,9 @@
_api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis ) {
return this.iterator( 'column', function ( settings, column ) {
return __setColumnVis( settings, column, vis );
return vis === undefined ?
settings.aoColumns[ column ].bVisible :
__setColumnVis( settings, column, vis );
} );
} );