api.getStores()
Description
Gets an object with the DataStore properties of the GridUsage
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:
import { getData } from "./common/data";
import { Grid } from "@svar-ui/react-grid";
function App() {
const { data, columns } = getData();
function init(api) {
const stores = api.getStores();
console.log("DataStore:", stores);
}
return <Grid data={data} columns={columns} init={init} />;
}
export default App;
Related articles: