@ahlam wrote:
Hi ,
I’m trying to prevent the drop of some objects relaying on their category , i’ve done this :`myDiagram.addDiagramListener(“ExternalObjectsDropped”, (e) => {
if (myVar != null) {
clearInterval(myVar);
}e.subject.each(function (node) { if (node.data.category === "sink" || node.data.category === "separator") { myDiagram.commandHandler.deleteSelection(); } })`
but it didnt work for me , it shows this error :
please help me !
Posts: 1
Participants: 1
