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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.