Select to view content in your preferred language

Popup component properties do not apply to Search result Popups

194
10
Jump to solution
Thursday
AntonioMedrano
Emerging Contributor

I'd like to set the docking position (or maybe eventually it'll be called slot) for a search result popup. For any standard popup component, this can be done with the following code:

const popupComponent = document.querySelector("arcgis-popup");
popupComponent.dockOptions = {
   buttonEnabled: true,
   position: "bottom-right"
};

Before components, setting the docking position would also apply toward search popups as well, but now it doesn't. How can I modify popup parameters on the search result popup, or even add a new action? Thank you.

0 Kudos
10 Replies
Noah-Sager
Esri Regular Contributor

No problem, @AntonioMedrano. This is a big transition for all of us. Keep posting questions if you run into any issues.

Your understanding is correct. The Popup component is like an opt-in experience.

Here is the key part of the doc:

https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-popup/

 

0 Kudos