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:
parent
bbb423ee75
commit
7b6ebd63de
@ -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 ) {
|
||||
|
||||
// } );
|
||||
|
||||
|
||||
|
||||
}());
|
||||
|
Loading…
x
Reference in New Issue
Block a user