Class: FilterPanel

FilterPanel(selectionPanelId)

resembles the panel containing all selection entries used to handle filter removal/additions/changes

Constructor

new FilterPanel(selectionPanelId)

Parameters:
Name Type Description
selectionPanelId container for the panel
Source:

Methods

addFilter(filterIdx, filterColor)

adds a new filter to the filter panel
Parameters:
Name Type Description
filterIdx index of the new filter
filterColor color of the new filter
Source:

getFilterIdxFromIdMap(id) → {number}

retrieves the set filterId for a given panel id (reverse-lookup)
Parameters:
Name Type Description
id id of the panel
Source:
Returns:
index of the filter, or -1 if no such exists
Type
number

removeFilter(filterIdx)

removes a filter panel
Parameters:
Name Type Description
filterIdx index of the panel to be removed
Source:

switchFilterPanels(filterIdx1, filterIdx2)

switches filter panels that are next to each other order of supplied filters is irrelevant
Parameters:
Name Type Description
filterIdx1 index of a filter
filterIdx2 index of a filter
Source: