Class: abstract 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

ParameterTypeDescription
cosmographCosmographThe Cosmograph instance to connect to
targetElementHTMLElementHTML element for rendering the UI component
configTConfigConfiguration for the filtering component

Returns

CosmographSelectionComponent<TConfig, TUIComponent>

Methods

setConfig()

setConfig(config): Promise<void>

Parameters

ParameterType
configPartial<TConfig>

Returns

Promise<void>


remove()

remove(): void

Removes the component and cleans up event listeners

Returns

void