afterSubmenuOpen
Description
Fires after the menu of the subheader is opened
Usage
afterSubmenuOpen: (
id: string | number,
event: MouseEvent,
subHeaderId?: string
) => void;
Parameters
The callback of the event takes the following parameters:
id
- (required) the id of a swimlaneevent
- (required) a native HTML event objectsubHeaderId
- (required) the id of a subheader of a swimlane
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("afterSubmenuOpen", (id, event, subheaderId) => {
console.log(id, event, subheaderId);
});
Change log: Added in v4.0
Related article: Event handling