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