I want to build a custom widget built with Vue and show it in the Expand widget.
For example, how would modify this example to show the camera-info Vue component inside an Expand widget?
You can do it a couple of ways. You can set the Expand content to the Vue target element or the Vue output element ".$el". Here is a demo.
https://codepen.io/odoe/pen/WNoJrWv?editors=1000
Perfect! Thanks for the quick response. I was just missing content: document.getElementById("info"). For others who may be interested, the following also works:
const expand = new Expand({ view, content: info.$el });
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.