select.info()
Get / set the information summary display state.
Please note - this property requires the Select extension for DataTables.
Description
By default Select will show information in the table's summary element (info
) summarising how many items are displayed. This method provides the ability to dynamically enable and disable that option.
Note that the display will not be immediately updated when toggling this value - it will be updated at the next table draw which can be triggered using the draw()
method.
Types
function select.info()
- Description:
Get the summary information display state for the table.
- Returns:
Current state -
true
if information summary shown,false
otherwise. Note that if multiple tables are defined in the API's context, only the information state of the first table will be returned.
function select.info( flag )
- Description:
Set the information summary display state for the table's selection options.
- Parameters:
Name Type Optional 1 flag
No Value to set for the information summary display state -
true
to enable,false
to disable.- Returns:
DataTables API instance for chaining.
Example
Disable the information summary display using the API:
var table = new DataTable('#myTable');
table.select.info(false);
Related
The following options are directly related and may also be useful in your application development.