Home Reference Source
import {BaseDropdown} from 'tablefilter/src/modules/baseDropdown.js'
public class | source

BaseDropdown

Extends:

Feature → BaseDropdown

Direct Subclass:

CheckList, Dropdown

Base class for Dropdown and CheckList UI components

Constructor Summary

Public Constructor
public

Creates an instance of BaseDropdown

Member Summary

Public Members
public

Filter options custom sorter on a column basis

Method Summary

Public Methods
public

isValidLinkedValue(rowIdx: Number, activeFilterIdx: Number): Boolean

Check passed row contains a valid linked value

public

Refresh linked filters to offer only selected options

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 the feature

public

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) source

Creates an instance of BaseDropdown

Override:

Feature#constructor

Params:

NameTypeAttributeDescription
tf TableFilter

Public Members

public customSorter: Object source

Filter options custom sorter on a column basis

Public Methods

public isValidLinkedValue(rowIdx: Number, activeFilterIdx: Number): Boolean source

Check passed row contains a valid linked value

Params:

NameTypeAttributeDescription
rowIdx Number

Row index

activeFilterIdx Number

Current active filter index

Return:

Boolean

public linkFilters() source

Refresh linked filters to offer only selected options