I am working with ArcGIS Developer to modify the position and content of the popup.
Would it be possible to change the default template into something custom? Since I'd rather change this internally from the code than changing the popup Arcade code for every layer I have.
Another question is whether I could dock the popup to a section or something like that. The 'bottom-left' and other options would not satisfy this since I need it to be in a specific location within the portal.
To solve these, would it instead be possible to intercept the popup click, read which layers and open a custom version instead?
I have found the following popup code within the widget arcgis-map/runtime/components/mapbase.tsx:
mapViewOption.popup = {
defaultPopupTemplateEnabled: true,
// Not changing since overwritten by popupTemplate ?
title: "Results title",
content: 'test',
// ADDED
// dockOptions: {
// position: 'bottom-left',
// }
}