hide()
Description
Hides Toolbar, Editbar, and Shapebar views of Diagram Editor.
info
If you need to hide the Toolbar, Editbar, and Shapebar view separately, call the hide()
method with the corresponding parameter. To hide all these elements, call the hide()
method without parameters.
Usage
hide(view?: "toolbar" | "shapebar" | "editbar"): void;
Parameters
toolbar
- (optional) hides Toolbarshapebar
- (optional) hides Shapebareditbar
- (optional) hides Editbar
Example
const editor = new dhx.DiagramEditor("editor_container", {
type: "default"
});
// hides the Shapebar view
editor.view.hide("shapebar");
// hides Shapebar, Editbar, and Toolbar
editor.view.hide();
Change log: Added in v6.0