API REFERENCE
showEmptyState
Shows an empty-state message when no data exists. Distinguish request failures from valid empty results in your app.
What does this API do?
Shows an empty-state message when no data exists. Distinguish request failures from valid empty results in your app.
Exact input and result types
showEmptyState: boolean| Item | Value |
|---|---|
| JavaScript name | showEmptyState |
| HTML attribute | show-empty-state |
| Default | true |
| Input type | boolean |
Usage flow
Set this on a property of the Grid element. In HTML, you can also use the show-empty-state attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.
Feature explanations and examples
- Loading and empty results
Loading and empty-data messages explain why the table has no visible content. Pending requests, no results, and failures are distinct states and should not share one empty screen.