getStores
Returns the raw store instances. This is an escape hatch - anything you can achieve through getState, exec, or on should go through those instead.
Usage
getStores(): { data: KanbanStore };
| Field | Type | Description |
|---|---|---|
data | KanbanStore | The internal kanban store driving the board |
Example
<script setup>
import { ref } from "vue";
import { Kanban } from "@svar-ui/vue-kanban";
const api = ref(null);
function inspectStore() {
const { data } = api.value.getStores();
console.log(data);
}
</script>
<template>
<Kanban :cards="cards" :columns="columns" ref="api" />
<button @click="inspectStore">Inspect store</button>
</template>
Related
- getState - non-reactive state snapshot (preferred)
- getReactiveState - reactive stores (preferred)