Adding Opacity Slider to Popup Panel?

418
1
09-09-2019 09:50 AM
ChrisUrkofsky
New Contributor

We currently have an older application created in the CMV template that gives the user the ability adjust the transparency of an image thats added to the application through the ESRI popup. We have moved our applications to the WebAppBuilder for Developers template, but have lost this functionality though the popup.

Anyone have any helpful ideas or solutions on how to recreate this functionality using the WebAppBuilder for Developers software, specifically to the popup panel custom widget?

0 Kudos
1 Reply
VictorTey
Esri Contributor

Hi i do not know what is a CMV template however you can create a popup action in the template

Popup actions | ArcGIS API for JavaScript 4.12 

then using the action, change the opacity.

Perhaps you can build this as a openAtStart widget which will loop through all your layers and add this action to the popup template.

ArcGIS API for JavaScript Sandbox 

0 Kudos