3👍
✅
Refs may help you along. https://vuejs.org/guide/essentials/template-refs.html#ref-on-component
Then you could pass it to your function like:
grid.add(this.$refs.myComponent, {
layout: false,
active: false
});
Source:stackexchange.com