mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-03 07:03:33 +02:00
Page:
1.18 Mark active columns
Pages
1.0 Configuration
1.01 Appearance
1.02 Main features
1.03 Grid layout
1.04 Paging
1.05 Drop down filter
1.06 Checklist filter
1.07 Rows counter
1.08 Loading indicator
1.09 Submit and reset button
1.10 Status bar
1.11 Data types
1.12 Themes
1.13 Help instructions
1.14 Popup filters
1.15 No results message
1.16 Highlight keywords
1.17 State
1.18 Mark active columns
1.19 Toolbar
1.20 Single filter
2.0 TableFilter class
2.1 Public properties
2.2 Public methods
3.0 Extensions
3.1 Advanced grid
3.1 Sort
3.2 Column operations
3.3 Filters visibility
3.4 Columns visibility
4. Filter operators
Home
Obsolete
TODO
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); } } }; |