searchPanes.resizePanes()
Resize all of the panes to fill the SearchPanes container appropriately.
Please note - this property requires the SearchPanes extension for DataTables.
Description
This method provides the ability to resize the panes to fill the SearchPanes container appropriately. SearchPanes uses this method itself when searchPanes.layout
is left at it's default value of auto
. For any other value of layout, this method will not do anything.
This method should be called when initialising and inserting SearchPanes through the API, immediately after the container has been inserted, otherwise the panes will display in a single column. It can also be called at any other time to attempt to resize the panes to their best fit, although SearchPanes should do this automatically.
Type
function searchPanes.resizePanes()
- Description:
Resize all of the panes to fill the SearchPanes container appropriately
- Returns:
DataTables API instance.
Example
Initialise SearchPanes, insert into DOM, and resize.:
var table = new DataTable('#myTable', {
searchPanes: true
});
table.searchPanes.container().prependTo(table.table().container());
table.searchPanes.resizePanes();
Related
The following options are directly related and may also be useful in your application development.