parse()
Description
Parses data into Kanban
This method performs the same operation as setConfig when used with data-related Kanban settings. It is therefore recommended to use setConfig for consistency with other configuration options, although parse remains supported as an alias for data parsing.
Usage
parse({
columns?: array,
rows?: array,
cards?: array,
links?: array
}): void;
Parameters
columns- (optional) the array of objects of the columns datarows- (optional) the array of objects of the rows datacards- (optional) the array of objects of the cards datalinks- (optional) the array of objects of the links data
Example
// create Kanban
const board = new kanban.Kanban("#root", {});
// parse data into Kanban
board.parse({
columns,
cards,
rows,
links
});
Change log: Starting from v1.1 you don't need to reset initial data in constructor before parsing new data
Related articles: Working with Data