| 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: Loads data into the Kanban board
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) 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
// 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