fritx / vue-at

At.js for Vue.
https://fritx.github.io/vue-at/
MIT License
529 stars 114 forks source link

[question] How can I configure a symbol like @ to other data? #23

Open bhulsman opened 6 years ago

bhulsman commented 6 years ago

Like the At.js docs say;

$('#inputor').atwho({
    at: "@",
    data:['Peter', 'Tom', 'Anne']
})

So I'd like to bind @ to users, and # to something else, like here on Github even. Am I missing something here; it it not possible yet or is it missing from the docs.

fritx commented 6 years ago

@bhulsman oh the feature is missing. Seems vue-at only supports a single set of data for now.

But I'm not sure if this would work: (That's crazy)

<at at="#" :memebrs="issues">
  <at at="@" :members="users">
    <editor></editor>
  </at>
</at>
fritx commented 6 years ago

I've tried it and it works in my docs demo xD @bhulsman

fritx commented 6 years ago

Added an faq/demo for this: https://fritx.github.io/vue-at/#/en/propsats

bhulsman commented 6 years ago

Awesome, thanks! ^^