I would like to launch a custom widget from the default popup info window in a WebAppBuilder app (add a button or link). Is this possible?
Thanks in advance,
M
Add your feature action to the jimu.js\featureActions folder and then add your action to the main.js in the jimu.js\featureActions folder.
Yes for that you should add a custom feature action to your widget.
https://developers.arcgis.com/web-appbuilder/guide/create-a-feature-action-in-your-widget.htm
Thanks Robert.
I can add this to my own widget, but what about adding it to the default ArcGIS Online identify popup window?
Worked like a charm. Now, is it possible to launch/expand a custom sidebar widget as well?
Sure just get your reference to that widget and open it.
OK, the widget launches, however, my custom widget requires the sidebar to be opened. And, I would also need to close the info-window. Is there a way to expand the sidebar?
WidgetManager.getInstance().triggerWidgetOpen('widgets_PropertyReport_Widget_48')
See demo here:
https://www.lakecountry.bc.ca/maps/maps/
See this thread:
https://community.esri.com/thread/180567
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.