Skip to main content

Showing the loading overlay

You can display a message about the data loading or an empty grid.

Showing a message

To display a text message about the data loading process or notify about an empty grid, add the text as the value of the overlay property.

Example:

import { Grid } from "wx-react-grid";
import { getData } from "./common/data";

const { columns, data } = getData();

export default function App() {
return <Grid data={data} columns={columns} overlay={'Loading...'} />;
}