webMethods Business Console Documentation 10.5 | webMethods Business Console Documentation | Developing Gadgets for Business Console | Communicating Between Gadgets | Communicating Between Gadgets Using Events
 
Communicating Between Gadgets Using Events
 
Using EventBus
Using Angular Events
Using HTML5 postMessage for Communication
Communication between gadgets is necessary to allow information to be shared between one or more gadgets. Gadget communication is possible only between AngularJS gadgets.
There are two ways to allow communication between gadgets:
*JavaScript based EventBus
*AngularJS events
AngularJS defined events are sometimes not favorable for communication between gadgets as we need to decide the event flow (upwards or downwards) based on the logic. A more appropriate way for communication is to provide publish-subscribe mechanism for communication.
Gadget framework provides another communication mechanism using a JavaScript based EventBus that registers all the events from the controller when the controller is getting loaded.

Copyright © 2014-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.