Class: CosmographBars
Internal
Abstract component that enforces exclusive selection across all instances. Only one component of this type can have an active selection at any time.
Extends
Constructors
Constructor
new CosmographBars(
cosmograph
,targetElement
,config
):CosmographBars
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 | CosmographBarsConfig | Configuration for the filtering component |
Returns
CosmographBars
Inherited from
CosmographExclusiveSelectionComponent
.constructor
Accessors
defaultConfig
Get Signature
get defaultConfig():
CosmographBarsConfig
Returns
Overrides
CosmographExclusiveSelectionComponent.defaultConfig
accessor
Get Signature
get accessor():
undefined
|string
Returns
undefined
| string
Overrides
CosmographExclusiveSelectionComponent.accessor
Methods
setConfig()
setConfig(
config
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
config | Partial <TConfig > |
Returns
Promise
<void
>
Inherited from
CosmographExclusiveSelectionComponent
.setConfig
remove()
remove():
void
Removes the component and cleans up event listeners
Returns
void
Inherited from
CosmographExclusiveSelectionComponent
.remove
setSelectedItem()
setSelectedItem(
item?
):void
Parameters
Parameter | Type |
---|---|
item? | BarData |
Returns
void
Overrides
CosmographExclusiveSelectionComponent.setSelectedItem