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: [{...}, {...}, ...]
}
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// retrieve the Kanban data object
board.serialize();