tinymins / vue-transfer-dom.js

A directive supported plugin for transfering DOM to another location in Vue.js components.
https://www.npmjs.com/package/vue-transfer-dom.js
1 stars 1 forks source link

support for using other selectors such as class etc #2

Closed emahuni closed 5 years ago

emahuni commented 5 years ago

I think it'd be more powerful if it can additionally use if used with { target: "input.class-to-select" } this can be implemented with document.querySelector(target) instead of getElementById(target). The id will only be used if the target is specified as a part of the directive.

tinymins commented 5 years ago

That's a good idea, thanks! https://github.com/tinymins/vue-transfer-dom.js/commit/5907d1959a508635967e60357eab05fa770fabc5