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.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.