JavaScript & React libraryAPI

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

ParameterType
containerNodeHTMLElement
config?DisplayStateConfigInterface

Returns

DisplayStateManager

Methods

extractConfig()

static extractConfig(config, defaultConfig): DisplayStateConfigInterface

Parameters

ParameterType
configDisplayStateConfigInterface
defaultConfigDisplayStateConfigInterface

Returns

DisplayStateConfigInterface


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

ParameterTypeDescription
text?stringOptional 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

ParameterType
configDisplayStateConfigInterface

Returns

void


destroy()

destroy(): void

Cleanup method for DisplayState elements

Returns

void