Class: DisplayStateManager
Base class that manages DisplayState UI states for data visualization components Used to encapsulate shared DisplayState logic
Extended by
Constructors
Constructor
new DisplayStateManager(
containerNode,config?):DisplayStateManager
Parameters
| Parameter | Type | 
|---|---|
containerNode | HTMLElement | 
config? | DisplayStateConfigInterface | 
Returns
DisplayStateManager
Methods
extractConfig()
staticextractConfig(config,defaultConfig):DisplayStateConfigInterface
Parameters
| Parameter | Type | 
|---|---|
config | DisplayStateConfigInterface | 
defaultConfig | DisplayStateConfigInterface | 
Returns
setLoadingState()
setLoadingState():
void
Sets the DisplayState element to loading state
Returns
void
showState()
showState(
text?):void
Shows the DisplayState element with the specified text
Parameters
| Parameter | Type | Description | 
|---|---|---|
text? | string | Optional text to display, defaults to noDataMessage | 
Returns
void
hideState()
hideState():
void
Hides the DisplayState element
Returns
void
setDisplayStateConfig()
setDisplayStateConfig(
config):void
Updates the DisplayState configuration
Parameters
| Parameter | Type | 
|---|---|
config | DisplayStateConfigInterface | 
Returns
void
destroy()
destroy():
void
Cleanup method for DisplayState elements
Returns
void