Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.58 KB

File metadata and controls

49 lines (37 loc) · 1.58 KB
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.

parse()

Description

@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.

Usage

parse({
    columns?: array,
    rows?: array,
    cards?: array,
    links?: array
}): void;

Parameters

  • columns - (optional) the array of objects of the columns data
  • rows - (optional) the array of objects of the rows data
  • cards - (optional) the array of objects of the cards data
  • links - (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