api.getStores()
Description
Gets an object with the DataStore properties of GanttUsage
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 { Gantt } from "wx-svelte-gantt";
import { getData } from "./common/data";
let api;
$: if (api) {
const stores = api.getStores();
console.log("DataStore:", stores);
}
</script>
<Gantt bind:api tasks = {data.tasks} links={data.links} />
Related articles: