Hi all, I'm trying to run a function in the widgetA after the widgetB is loaded, what is the best way to do this?
Thanks,
Naty
Naty,
In WidgetB I would use publishData to tell WidgetA that it is loaded. then use WidgetManager to get a reference to WidgetA and call its function. In the WAB stemapp widgets folder there is samplewidgets folder with a widgetcommunication folder with examples of code for widget communication.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.