[Vuejs]-Pass vue component to function

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
});
👤daniel

Leave a comment