How to use?
To trigger events, use the EventEmitter_TriggerEvent client action. Pass the following arguments:
To handle events, use the EventHandler block.Takes a list of EventNames as an input parameter. This determines the events that will be handled.
This block throws an Event when it handles an event with one ot these names triggered by EventEmitter_TriggerEvent. Add a handler to handle this event.
Only events sent from within the same EventEmitterContext will be handled. If no EventEmitterContext is used (it is optional), a 'global' EventEmitterContext will be attached to the javascript window object.
(Optional) EventEmitterContext
Use the EventEmitterContext block to isolate event handling in a section of the application. All events triggered in a separate EventEmitterContext will only be handled by EventHandler blocks in the same EventEmitterContext.
If no EventEmitterContext is used (it is optional), a 'global' EventEmitterContext will be attached to the javascript window object.
See the demo application for an example of all these use cases.