cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
285
Views
0
Helpful
0
Replies

Events in Macro programming

steven.gauthier
Level 1
Level 1

Hello, Is it possible to create our own events in the macro framework, something like this?

const event = new Event('build');

// Listen for the event.
elem.addEventListener('build', function (e) { /* ... */ }, false);

// Dispatch the event.
elem.dispatchEvent(event);

Thank you 

0 Replies 0