
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@venegrad/vue3-autocomplete
Advanced tools
Simple autocomplete field for vue3 and nuxt3. Tags, async loading list, dynamic, async, dropdown list.
This is a simple library that allows you to input tags into a field, outputting an array. There's the option to disable duplication, asynchronous loading of lists, control props, and much more.
You can use "tab", "enter", "," to complete tag. And up/down arrow to navigate on list (enter press on list complete tag). Press backspace (if input empty) or click on cross, to remove a tag.
import vueAutocomplete from "@venegrad/vue3-autocomplete"
export default {
components: {
vueAutocomplete
},
}
Css if needed:
@import '@venegrad/vue3-autocomplete/dist/venAutocomplete.css'
list
: (Array, ['John', 'Doe']), Default = empty, List of tags for autocomplete.disabledSymbols
: (String, "#!=&)(/"), Default = null, List in string of disabled symbols or letters.min
: (Number, 1), Default = 1, Minimum length for 1 tag.max
: (Number, 1), Default = 200, Maximum length for 1 tag.dublicates
: (Boolean, false), Default = false, Available of disable dublcate tags.placeholder
: (String, "Start typing"), Default = null, Placeholder for input tagv-model
: v-model value (Array, ['John', 'Doe']), Dynamic v-model valueAll you need to do is attach a watch event to the v-model value, but if that's not enough for you, I've added a few more events.
@inputEvent
= return value of input field, when user typing or pasting something.@changed
= return value of v-model when inner array or v-model changed. Starts first time on components mount, and every time when v-model changed.@open
= return dropdown trigger, opened or closed.<template>
<ven-autocomplete ref="ggauto" />
</template>
<script setup>
const ggauto = ref()
onMouted(() => {
ggauto.value.goOpen();
setTimeout(() => {
ggauto.value.goClose();
}, 5000)
})
</script>
<venAutocomplete
:list="list"
placeholder="Write something, and press ',' or 'enter' or 'tab'"
disabled-symbols="#!=&)(/"
:max="30"
:min="3"
:dublicates="true"
v-model="vvalue"
@inputEvent="inputEvent"
@changed="changed"
@opened="opened"
/>
TKXybH3YoFvT5h8bQFLdkDBtiXA65y7xaB
0xc3efeB4825E350eE5D6B032Aa1dE144B09B5bB0D
FAQs
Simple autocomplete field for vue3 and nuxt3. Tags, async loading list, dynamic, async, dropdown list.
The npm package @venegrad/vue3-autocomplete receives a total of 919 weekly downloads. As such, @venegrad/vue3-autocomplete popularity was classified as not popular.
We found that @venegrad/vue3-autocomplete demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.