serialize()
Description
Serializes the Kanban data to JSON
Usage
serialize(): object;
Returns
The method returns the object of Kanban data
{
cards: [{...}, {...}, ...],
rows: [{...}, {...}, ...],
columns: [{...}, {...}, ...]
}
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// get the object of the Kanban data
board.serialize();