We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using this package with a tag input, pulling the list of tags from an external api and everything is working well, except this issue.
I can't figure out how to use the array of tag objects with { :id, :tag } but in the drop down show only the :tag.
here is the component:
<vue-tags-input v-model="tag" v-on:keyup.native="getTags" :tags="tags" :autocomplete-items="filteredItems" :autocomplete-min-length=3 @tags-changed="confirmedTags" />
and filteredItems returns an array of Tag objects.
The text was updated successfully, but these errors were encountered:
This is what the current drop down looks like:
Sorry, something went wrong.
@campgurus you either have to override the template
<template #tag-left="{tag}"> <div v-if="tag.tagScope"> {{ tag.tagScope.tagScopeName }} </div> </template>
or create a computed property / function that maps the text you want to display to the "text" property
return tags.map(t => { t.text = t.tagName; }};
No branches or pull requests
I am using this package with a tag input, pulling the list of tags from an external api and everything is working well, except this issue.
I can't figure out how to use the array of tag objects with { :id, :tag } but in the drop down show only the :tag.
here is the component:
and filteredItems returns an array of Tag objects.
The text was updated successfully, but these errors were encountered: