Hi Yasmine,
Please use itemClick event to achieve your requirement. Please refer to the code example and sample below.
Code example:
<ej-dialog id="basicDialog" title="Dialog" [showOnInit]="showOnInit">
<span id="text"></span>
</ej-dialog>
<ej-diagram id="diagramCore" (itemClick)="onClick($event)">
</ej-diagram>
onClick(event) {
if (event.elementType === "node") {
$("#basicDialog").ejDialog("open");
document.getElementById("text").innerHTML = event.element.name;
}
}
In the above sample, we have shown the node name in the dialog box using diagram itemClick event.
Regards,
Shyam G