Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.6 KB

File metadata and controls

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

Usage

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

Parameters

  • columns - (optional) an array containing column data objects
  • rows - (optional) an array containing row data objects
  • cards - (optional) an array containing card data objects
  • links - (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