vue-tribute
vue-tribute copied to clipboard
can i return vue copmponents in the options
I want to be able to use vue templates/components in the options. I don't reall know if it is. Something like
const options = {
trigger: '@',
values: function (text, cb) {
console.log(text)
tagSearch(text, (users) => cb(users))
},
lookup: 'username',
fillAttr: 'username',
noMatchTemplate: function () {
return ''
},
menuItemTemplate: function (item) {
return <avatar/>
}
}