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?
Solved! Go to Solution.
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.
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.
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
});