Skip to content

EmptyDataStateUI

Description

Initializes the empty data state UI with the grid container and document, then builds and inserts the DOM structure.

Methods

destroy

Source code

emptyDataStateUI.destroy()

Removes the emptyDataState UI elements from the DOM and clears the refs.

getElement

Source code

emptyDataStateUI.getElement() ⇒ HTMLElement

Gets the emptyDataState element.

Returns: HTMLElement - The empty data state element.

getFocusableElements

Source code

emptyDataStateUI.getFocusableElements() ⇒ Array<HTMLElement>

Gets the focusable elements of the emptyDataState element.

Returns: Array<HTMLElement> - The focusable elements.

hide

Source code

emptyDataStateUI.hide()

Hides the emptyDataState element.

install

Source code

emptyDataStateUI.install()

Creates the emptyDataState UI elements and sets up the structure.

show

Source code

emptyDataStateUI.show()

Shows the emptyDataState element.

updateClassNames

Source code

emptyDataStateUI.updateClassNames(view)

Updates the class names of the emptyDataState element.

ParamTypeDescription
viewViewThe view instance.

updateContent

Source code

emptyDataStateUI.updateContent(message, isLoading) ⇒ void

Updates the content of the emptyDataState element.

ParamTypeDefaultDescription
messagestring
object
The message to update.
isLoadingbooleanfalseWhen true, shows a loading spinner.

updateSize

Source code

emptyDataStateUI.updateSize(view, [isLoading])

Updates the size of the emptyDataState element.

ParamTypeDefaultDescription
viewViewThe view instance.
[isLoading]booleanfalseoptional When true and the grid has renderable columns, use the same workspace sizing as when renderable rows exist (e.g. DataProvider fetch while a page is still shown).