1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-03 07:03:33 +02:00
3 1.18 Mark active columns
koalyptus edited this page 2017-11-08 13:59:23 +11:00

Visual indicator indicating the columns that are currently filtered.

Property Type Description Remarks Example
mark_active_columns boolean or literal object Visual indicator indicating the columns that are currently filtered (default - false) You can use this option as a literal object too
var tfConfig = { mark_active_columns: true };
// or
var tfConfig = { 
  mark_active_columns: {} 
};
        
header_css_class string Css class applied to the header of the filtered column (default - 'activeHeader')
var tfConfig = { 
  mark_active_columns: {
    header_css_class: 'myCssClass'
  } 
};
        
cell_css_class string Css class applied to the cell of the filtered column (default - 'activeCell')
var tfConfig = { 
  mark_active_columns: {
    cell_css_class: 'myCssClass'
  } 
};
        
highlight_column boolean Highlight whole filtered column (default - false)
var tfConfig = { 
  mark_active_columns: {
    highlight_column: true
  } 
};
        
on_before_active_column function Callback invoked just before a column is marked as filtered (default - empty function)
var tfConfig = { 
  mark_active_columns: {
    on_before_active_column(feature, colIndex){
      console.log(feature, colIndex);  
    }
  } 
};
        
on_after_active_column function Callback invoked just before a column is marked as filtered (default - empty function)
var tfConfig = { 
  mark_active_columns: {
    on_after_active_column: function(feature, colIndex){
      console.log(feature, colIndex);  
    }
  } 
};