Skip to main content

groupHeaderDblClick

Description

Fires on double-clicking a header of a group

If a double-click is done over a header of a swimlane, the event will be fired on the subheader of the swimlane

Usage

groupHeaderDblClick: (
id: string | number,
event: MouseEvent,
subHeaderId?: string
) => void;

Parameters

The callback of the event takes the following parameters:

  • id - (required) the id of a group
  • event - (required) a native HTML event object
  • subHeaderId - (optional) 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("groupHeaderDblClick", (id, event, subheaderId) => {
console.log(id, event, subheaderId);
});

Change log: Added in v4.0

Related article: Event handling