EmptyDataStateUI
Description
Initializes the empty data state UI with the grid container and document, then builds and inserts the DOM structure.
Methods
destroy
emptyDataStateUI.destroy()
Removes the emptyDataState UI elements from the DOM and clears the refs.
getElement
emptyDataStateUI.getElement() ⇒ HTMLElement
Gets the emptyDataState element.
Returns: HTMLElement - The empty data state element.
getFocusableElements
emptyDataStateUI.getFocusableElements() ⇒ Array<HTMLElement>
Gets the focusable elements of the emptyDataState element.
Returns: Array<HTMLElement> - The focusable elements.
hide
emptyDataStateUI.hide()
Hides the emptyDataState element.
install
emptyDataStateUI.install()
Creates the emptyDataState UI elements and sets up the structure.
show
emptyDataStateUI.show()
Shows the emptyDataState element.
updateClassNames
emptyDataStateUI.updateClassNames(view)
Updates the class names of the emptyDataState element.
| Param | Type | Description |
|---|---|---|
| view | View | The view instance. |
updateContent
emptyDataStateUI.updateContent(message, isLoading) ⇒ void
Updates the content of the emptyDataState element.
| Param | Type | Default | Description |
|---|---|---|---|
| message | string object | The message to update. | |
| isLoading | boolean | false | When true, shows a loading spinner. |
updateSize
emptyDataStateUI.updateSize(view, [isLoading])
Updates the size of the emptyDataState element.
| Param | Type | Default | Description |
|---|---|---|---|
| view | View | The view instance. | |
| [isLoading] | boolean | false | optional 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). |