Skip to main content

beforeHide

Description

Fires before the Toolbar, Editbar or Shapebar view is hidden

Usage

"beforeHide": (view: "toolbar" | "shapebar" | "editbar") => boolean | void;

Parameters

The callback of the beforeHide event is called with the following parameter:

  • view - (required) a view that will be hidden. Refer to the view property for details.
info

For handling the inner events of Diagram Editor you can use the on() method.

Example

// initializing Diagram Editor
const editor = new dhx.DiagramEditor("editor_container", {
type: "default",
view: {
shapebar: true
}
});

// attaching a handler to the event
editor.view.events.on("beforeHide", (view) => {
console.log("The " + view + " view of Diagram Editor will be hidden");
});

Change log: Added in v6.0