Open widget with button

672
2
08-10-2021 01:37 PM
RealtixIDE
New Contributor

How can I add a widget and add it to the mapView from a button?

Having a button widget added, I would like to click it to open a widget that I have created and add it to the MapView, do you know how I can do it?

Thanks, John

0 Kudos
2 Replies
ShengdiZhang
Esri Regular Contributor

Hi John,

You can use the widget controller to do this.

Add a widget controller, and click on the add button to choose a widget:

ShengdiZhang_0-1628647540179.png

 

At runtime:

ShengdiZhang_1-1628647576863.png

 

Widget controller help link: https://doc.arcgis.com/en/experience-builder/configure-widgets/widget-controller-widget.htm

Regards,

Shengdi

0 Kudos
RealtixIDE
New Contributor

I get it, I already tried it this way.

However I would like to be able to add a widget in any position of the MapView, for customization in the widget frame.

Is this possible?
Being able to call one widget from another and add it to the MapView?

Thanks,

John

0 Kudos