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 });
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.