Skip to main content

afterHide

Description

Fires after the Toolbar, Editbar or Shapebar view is hidden

Usage

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

Parameters

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

  • view - (required) a view that was 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("afterHide", (view) => {
console.log("The " + view + " view of Diagram Editor was hidden");
});

Change log: Added in v6.0