AnsweredAssumed Answered

Embed widget in popup

Question asked by ZConlen@bellevuewa.gov_cobgis on Jan 30, 2019
Latest reply on Jan 31, 2019 by ZConlen@bellevuewa.gov_cobgis

Hi. Working with 4.10 api, I'd like to have a widget render in a popup. The popup would be an accordion like interactive interface. I have modified the popup style so it is large enough to contain the widget, but not sure the best way to create the widget inside the popup. Typically, you would add the widget to an app like below, but that div does not exist in the interface. Rather it would need to be created dynamically when the popup content is created. 

var widget = new myWidget({
  container: "myWidgetDiv"
});

I know the popup content can be generated via a function. Seems that would be the way to handle this but having trouble wrapping my head around how exactly to go about it.

 

Any suggestions would be appreciated.

 

Thanks

Outcomes