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

Documentation
1.0.0


  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.