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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.