Skip to main content

show()

Description

Shows Toolbar, Editbar, and Shapebar views of Diagram Editor

info

If you need to show the Toolbar, Editbar, or Shapebar view separately, call the show() method with the corresponding parameter. To show all these elements, call the show() method without parameters.

Usage

show(view?: "toolbar" | "shapebar" | "editbar"): void;

Parameters

  • toolbar - (optional) shows Toolbar
  • shapebar - (optional) shows Shapebar
  • editbar - (optional) shows Editbar

Example

const editor = new dhx.DiagramEditor("editor_container", {
type: "default"
});

// shows the Shapebar view
editor.view.show("shapebar");

// shows Shapebar, Editbar, and Toolbar
editor.view.show();

Change log: Added in v6.0