Skip to main content

isVisible()

Description

Checks if the Toolbar, Editbar, or Shapebar view of Diagram Editor is visible.

Usage

isVisible(view: "toolbar" | "shapebar" | "editbar"): boolean;

Parameters

  • toolbar - (required) checks if Toolbar is visible
  • shapebar - (required) checks if Shapebar is visible
  • editbar - (required) checks if Editbar is visible

Example

const editor = new dhx.DiagramEditor("editor_container", {
type: "default",
view: {
shapebar: false,
toolbar: true
}
});

// checks the Toolbar and Shapebar visibility
editor.view.isVisible("shapebar"); // return false
editor.view.isVisible("toolbar"); // return true

Change log: Added in v6.0