Constructor Summary
Public Constructor | ||
public |
constructor(tf: TableFilter) Creates an instance of Dropdown |
Member Summary
Public Members | ||
public |
Enable the reset filter option as first item |
|
public |
|
|
public |
isCustom: * |
|
public |
Tooltip text appearing on multiple select |
|
public |
Non empty option text |
|
public |
opts: *[] |
|
public |
optsTxt: *[] |
Method Summary
Public Methods | ||
public |
addFirstOption(slc: Object): * Add drop-down header option |
|
public |
addOptions(colIndex: Number, slc: Object, isLinked: Boolean, excludedOpts: Array) Add drop-down options |
|
public |
Build drop-down filter UI |
|
public |
destroy() Destroy Dropdown instance |
|
public |
Get filter values for a given column index |
|
public |
Initialize drop-down filter |
|
public |
Refresh all drop-down filters |
|
public |
selectOptions(colIndex: Number, values: Array) Select filter options programmatically |
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 |
From class BaseDropdown | ||
public |
Filter options custom sorter on a column basis |
|
public |
isValidLinkedValue(rowIdx: Number, activeFilterIdx: Number): Boolean Check passed row contains a valid linked value |
|
public |
Refresh linked filters to offer only selected options |
Public Constructors
public constructor(tf: TableFilter) source
Creates an instance of Dropdown
Override:
BaseDropdown#constructorParams:
Name | Type | Attribute | Description |
tf | TableFilter | TableFilter instance |
Public Members
public initialized: boolean source
Field indicating whether Feature is initialized
Override:
Feature#initializedpublic isCustom: * source
public opts: *[] source
public optsTxt: *[] source
Public Methods
public addFirstOption(slc: Object): * source
Add drop-down header option
Params:
Name | Type | Attribute | Description |
slc | Object | Select DOM element |
Return:
* |
public addOptions(colIndex: Number, slc: Object, isLinked: Boolean, excludedOpts: Array) source
Add drop-down options
public getValues(colIndex: Number): Array source
Get filter values for a given column index
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column index |
public init(colIndex: Number, isExternal: Boolean, container: DOMElement) source
Initialize drop-down filter