| sidebar_label | parse() |
|---|---|
| title | parse Method |
| description | You can learn about the parse method in the documentation of the DHTMLX JavaScript Kanban library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Kanban. |
@short: 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.
parse({
columns?: array,
rows?: array,
cards?: array,
links?: array
}): void;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
// 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