event-hub
Reactive icon

Event Hub

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 14 Jan (yesterday)
 by 
0.0
 (0 ratings)
event-hub

Event Hub

Details
A tool that allows broadcast messages to be received by web blocks. Any block can pass data and trigger an event in any other block. The onParameterChanged is no longer needed to trigger events, and you have complete control to use the ListenerId parameter to distribute events to specific components. You can even use it to trigger events at the screen level when the block is several layers deep, without having to bubble up events through it's ancestors.
Read more


  1. Place the event bus anywhere on a page. 

  2. Place the event receiver on anything that you want to send messages to. 



  1. Use the BroadcastMessage action to broadcast events. 


How you handle the event is up to you.


Every block with a listener will receive every event, but the common use case is, when you handle the event, check the EventName to see if it’s what you’re waiting for, then if the listening component has an Id (ex. Blocks within a list), check to see if the Id in the message is your block’s Id. 


Finally, the data can be used to send anything. For complex structures, you can use serialization. 


Additionally, if you put a receiver on a page, you can send messages from deeply nested blocks without having to bubble them up through the ancestor tree. This essentially means that you can have page-level handlers for blocks no matter how deep they are nested.

Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category