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:

<script>
import { getData } from "./common/data";
import { Grid } from "@wx/svelte-grid";

const { data, columns } = getData();

let api;

$: if (api) {
const stores = api.getStores();
console.log("DataStore:", stores);
}
</script>

<Grid {data} {columns} bind:api />

Related articles: