Skip to main content

api.getStores()

Description

Gets an object with the StateStore and DataStore objects of Kanban

Usage

api.getStores(): object;

Returns

The method returns an object with StateStore and DataStore:

{
state: StateStore, // ( object )
data: DataStore // ( object )
}

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// get the StateStore and DataStore objects of Kanban
const stores = board.api.getStores();
console.log(stores);