Skip to main content

getStores

Returns the raw store instances. This method is an escape hatch. For anything getState, exec, or on can do, use those methods instead.

Usage​

getStores(): { data: KanbanStore };
FieldTypeDescription
dataKanbanStoreThe internal kanban store driving the board

Example​

<script>
import { Kanban } from "@svar-ui/svelte-kanban";

let api;

function inspectStore() {
const { data } = api.getStores();
console.log(data);
}
</script>

<Kanban {cards} {columns} bind:this={api} />
<button onclick={inspectStore}>Inspect store</button>