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 visibleshapebar
- (required) checks if Shapebar is visibleeditbar
- (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