serialize()
Description
Converts the Kanban data into a JSON format
Usage
serialize(): object;
Returns
This method returns an object containing the Kanban data
{
cards: [{...}, {...}, ...],
rows: [{...}, {...}, ...],
columns: [{...}, {...}, ...],
links: [{...}, {...}, ...]
}
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// retrieve the Kanban data as an object
board.serialize();