responsive.hasHidden()
Since: Responsive 2.0.0
Determine if Responsive has hidden any columns in the table.
Please note - this property requires the Responsive extension for DataTables.
Description
This method provides the ability to programmatically determine if Responsive has hidden any columns in the table or not. The result will reflect the state of the table when the method is called.
Type
function responsive.hasHidden()
- Description:
Determine if columns have been hidden by Responsive or not.
- Returns:
true
if columns have been hidden by Responsive,false
otherwise.
Example
Hide a column completely by adding a class name and rebuilding:
var table = new DataTable('#myTable', {
responsive: true
});
if (table.responsive.hasHidden()) {
console.log('In Responsive state');
}
else {
console.log('Not in Responsive state');
}