Abstract Class: CosmographSelectionComponent<TConfig, TUIComponent>
Abstract class for data selection components in Cosmograph. Provides common functionality for data filtering and UI component updates.
Extended by
Type Parameters
| Type Parameter |
|---|
TConfig extends SelectionComponentConfig |
TUIComponent extends SelectionUIComponent<TConfig> |
Constructors
Constructor
new CosmographSelectionComponent<
TConfig,TUIComponent>(cosmograph,targetElement,config):CosmographSelectionComponent<TConfig,TUIComponent>
Constructs a filtering component that connects Cosmograph data to a UI component.
Parameters
| Parameter | Type | Description |
|---|---|---|
cosmograph | Cosmograph | The Cosmograph instance to connect to |
targetElement | HTMLElement | HTML element for rendering the UI component |
config | TConfig | Configuration for the filtering component |
Returns
CosmographSelectionComponent<TConfig, TUIComponent>
Methods
setConfig()
setConfig(
config):Promise<void>
Parameters
| Parameter | Type |
|---|---|
config | Partial<TConfig> |
Returns
Promise<void>
remove()
remove():
void
Removes the component and cleans up event listeners
Returns
void