Is there any event on BPMNModeler for listening every change in model?
Yes, it’s elements.changed
. This event is fired whenever the diagram has changed e.g. a shape was moved or a label was changed.
1 Like
what elements
means?
Is it const or I need to put instead of it my variable?
It’s the name of the event:
eventBus.on('elements.changed', () => doStuff());
1 Like
May I implement this without eventBus?
I`m working with Angular
@HostListener('elements.changed', ['$event']) onChangeDiagram(event:Event) {
console.log("changes")
}
And this code isn`t working
Do you know why?
I’m not sure what this code does. And no, you cannot listen to an event without the event bus.
Oh, I found a solution for an Angular
Attaching, maybe someone will also need this!
Thank you!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.