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

New: columns.adjust() API method.

- Recalculate the "ideal" column sizes for the table. Might want this
  after a column visiblity change for example

- Replaces the fnAdjustColumnSizing method.
This commit is contained in:
Allan Jardine 2013-04-28 10:23:43 +01:00
parent bbb423ee75
commit 7b6ebd63de

View File

@ -135,6 +135,16 @@ _api.register( 'columns().visible()', function ( vis ) {
// } );
_api.register( 'columns.adjust()', function () {
this.iterator( 'table', function ( settings ) {
_fnAdjustColumnSizing( settings );
} );
} );
// _api.register( 'column.index()', function ( idx, type ) {
// } );
}());