matiastucci / vue-input-tag

:bookmark: Vue.js 2.0 Input Tag Component
https://tucci.me/vue-input-tag
MIT License
536 stars 135 forks source link

Filter tags on add: toLowerCase and remove accents #78

Closed webarthur closed 6 years ago

webarthur commented 6 years ago

It's possible to implement a filter function param? Something like:

<input-tag :onAddTag="customFunction"></input-tag>

And my custom function would be:

  methods: {
    customFunction (tag) {
      return tag.toLowerCase()
    }
  }
matiastucci commented 6 years ago

Now it's not possible. But feel free to open a PR 👍