beforeShow
Description
Fires before the Toolbar, Editbar or Shapebar view is displayed
Usage
"beforeShow": (view: "toolbar" | "shapebar" | "editbar") => boolean | void;
Parameters
The callback of the beforeShow event is called with the following parameter:
view
- (required) a view that will be displayed. Refer to theview
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: false
}
});
// attaching a handler to the event
editor.view.events.on("beforeShow", (view) => {
console.log("The " + view + " view of Diagram Editor will be displayed");
});
Change log: Added in v6.0