import ColsVisibility from 'tablefilter/src/extensions/colsVisibility/colsVisibility.js'
Constructor Summary
Public Constructor | ||
public |
constructor(tf: TableFilter, Configuration: Object) Creates an instance of ColsVisibility |
Member Summary
Public Members | ||
public |
List of columns indexes to be hidden at initialization |
|
public |
Css for columns manager UI close link |
|
public |
Columns manager UI close link HTML |
|
public |
Columns manager UI close link text, defaults to 'Close' |
|
public |
Css class for button |
|
public |
Button's inner HTML |
|
public |
Button's text, defaults to Columns▼ |
|
public |
ID of button's container element |
|
public |
Css for columns manager UI main container |
|
public |
ID of main container element |
|
public |
Module description |
|
public |
Enable hover behaviour on columns manager button/link |
|
public |
Enable select all option, disabled by default |
|
public |
Headers row index only if headers are external |
|
public |
headersTbl: DOMElement Headers HTML table reference only if headers are external |
|
public |
Alternative text for column headers in column manager UI |
|
public |
|
|
public |
Css for columns manager UI checklist (ul) |
|
public |
Css for columns manager UI checklist item (li) |
|
public |
Css for columns manager UI checklist item selected state (li) |
|
public |
Enable columns manager UI, defaults to true |
|
public |
Module name |
|
public |
Callback fired after the columns manager is closed |
|
public |
Callback fired after a column is displayed |
|
public |
Callback fired after a column is hidden |
|
public |
Callback fired after the columns manager is opened |
|
public |
Callback fired before the columns manager is closed |
|
public |
Callback fired before a column is displayed |
|
public |
Callback fired before a column is hidden |
|
public |
Callback fired before the columns manager is opened |
|
public |
Callback fired when the extension is initialized |
|
public |
Css for columns manager UI span |
|
public |
Extension's stylesheet filename |
|
public |
Text preceding the columns list, defaults to 'Hide' or 'Show' depending on tick mode (tick_to_hide option) |
|
public |
Text for select all option, defaults to 'Select all:' |
|
public |
Enable tick to hide a column, defaults to true |
|
public |
Default position in toolbar ('left'|'center'|'right') |
Method Summary
Public Methods | ||
public |
buildBtn() Build main button UI |
|
public |
Build columns manager UI |
|
public |
destroy() Remove the columns manager |
|
public |
Return the indexes of the columns currently hidden |
|
public |
Hide specified column |
|
public |
init() Initializes ColsVisibility instance |
|
public |
isColHidden(colIndex: Number): boolean Determine if specified column is hidden |
|
public |
Hide or show specified columns |
|
public |
Show specified column |
|
public |
toggle() Toggle columns manager UI |
|
public |
Toggle visibility of specified column |
Inherited Summary
From class Feature | ||
public |
TableFilter configuration |
|
public |
TableFilter emitter instance |
|
public |
TableFilter feature setting |
|
public |
Feature name is the camelised class name as per TableFilter's convention |
|
public |
Field indicating whether Feature is initialized |
|
public |
TableFilter instance |
|
public |
destroy() Destroy the feature |
|
public |
disable() Disable the feature |
|
public |
enable() Enable the feature |
|
public |
init() Initialize the feature |
|
public |
Indicate whether the feature is enabled or not |
|
public |
reset() Reset the feature after being disabled |
Public Constructors
public constructor(tf: TableFilter, Configuration: Object) source
Creates an instance of ColsVisibility
Override:
Feature#constructorParams:
Name | Type | Attribute | Description |
tf | TableFilter | TableFilter instance |
|
Configuration | Object | object |
Public Members
public initialized: boolean source
Field indicating whether Feature is initialized
Override:
Feature#initializedpublic listSlcItemCssClass: String source
Css for columns manager UI checklist item selected state (li)
Public Methods
public hideCol(colIndex: Number) source
Hide specified column
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column index |
public isColHidden(colIndex: Number): boolean source
Determine if specified column is hidden
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column index |