emptyAreaClick
Description
Fires on clicking an empty space in the current diagram area
Usage
emptyAreaClick: (event: MouseEvent) => void;
Parameters
The callback of the event takes the following parameter:
event
- (required) a native HTML event object
Example
// initializing Diagram
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
// loading data
diagram.data.parse(data);
// attaching a handler to the event
diagram.events.on("emptyAreaClick", () => {
console.log("An empty space has been clicked");
});
Related article: Event handling