Skip to main content

parse()

Description

Loads items into Toolbar of Diagram Editor

Usage

parse(items: (object | string)[]): void;

Parameters

  • items - (required) an array of items that is parsed into Toolbar. See the full list of available items here

Example

const editor = new dhx.DiagramEditor("editor_container", {
type: "org",
view: {
toolbar: true
}
});
// display the toolbar with specified items
editor.toolbar.parse([{ type: "file", disabled: false }, "spacer", "scale"]);

Change log: Added in v6.0