lineTitleMouseDown
Description
Fires when a pointing device button is pressed while the pointer is over a text element of a line
Usage
lineTitleMouseDown: (
lineId: string | number,
titleId: string | number,
event: MouseEvent
) => void;
Parameters
The callback of the event takes the following parameters:
lineId
- (required) the id of a linetitleId
- (required) the id of a text element of a lineevent
- (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("lineTitleMouseDown", (lineId, titleId, event) => {
console.log("lineTitleMouseDown");
});
Change log: Added in v4.1
Related article: Event handling
Related samples: Diagram. Default mode. Events