Hi everyone,
I need to observe shape.append event is any possible to handle this event?
Hi everyone,
I need to observe shape.append event is any possible to handle this event?
What about using the EventBus
?
const eventBus = modeler.get('eventBus');
eventBus.on('shape.append', function(event) {
// do whatever you want
});
Hi Niklas,
Oops, I missed to use eventBus.i had been trying this modeler.on(‘shape.append’). Thanks for helping me…
modeler.on
uses eventBus.on
internally so that should work just the same.
Hi Niklas,
I tried both but not working. I have to find another way to solve.
Can you share your code in a CodeSandbox? It will be easier for us to see what’s going on on your side.
Sure, Please give some time. Thanks