Skip to main content

api.getStores()

Description

Gets an object with the DataStore properties of the Grid

Usage

api.getStores(): object;

Returns

The method returns an object with the DataStore parameters:

{
data: DataStore // ( object of parameters )
}

Example

The example below shows how to output DataStore to the console:

const { data, columns } = getData();

export default function App() {
const api = useRef(null);

useEffect(() => {
if (api.current) {
const stores = api.current.getStores();
console.log("DataStore:", stores);
}
}, [api.current]);

return <Grid data={data} columns={columns} api={api} />;
}

Related articles: