Skip to main content

export.json()

Description

Saves the Kanban data as a JSON file

Usage

export.json(): void;
info

This method saves the Kanban board data into a JSON file with the following format:

{
"cards": [],
"columns": [],
"rows": []
}

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// export the Kanban data to JSON ()
board.export.json(); // => { "cards": [...], "columns": [...], "rows": [] }

Change log: The method was added in v1.3