parse()
Description
Loads data into the Kanban board
Usage
parse({
columns?: array,
rows?: array,
cards?: array
}): void;
Parameters
columns
- (optional) an array containing column data objectsrows
- (optional) an array containing row data objectscards
- (optional) an array containing card data objects
Example
// create Kanban
const board = new kanban.Kanban("#root", {});
// load data into Kanban
board.parse({
columns,
cards,
rows
});
Change log: Starting from v1.1, it's no longer necessary to reset the initial data in the constructor before parsing new data
Related articles: Working with Data