Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@anthonygore/vue3-autocomplete
Advanced tools
Using npm
npm install vue3-autocomplete
Using yarn
yarn add vue3-autocomplete
Load the component globally...
import App from './App.vue' // Or whatever you need
import Autocomplete from 'vue3-autocomplete'
// Optional: Import default CSS
import 'vue3-autocomplete/dist/vue3-autocomplete.css'
let app = createApp(App)
app.component('Autocomplete', Autocomplete)
app.mount('#app')
... Or locally into your component.
import Autocomplete from 'vue3-autocomplete'
// Optional: Import default CSS
import 'vue3-autocomplete/dist/vue3-autocomplete.css'
export default {
name: 'YourComponentName',
components: {
Autocomplete
}
}
Use the component into your template.
<template>
<div>
<Autocomplete
@input="getItems"
:results="items"
></Autocomplete>
</div>
</template>
Property | Type | Description | Required | Default |
---|---|---|---|---|
results | Array | Items to display in the results list | No | [] |
display-item | Function | Describes how to render each item in results | No | return item.name |
debounce | Integer | Time to wait before each call to the @input event | No | 0 |
max | Integer | Define a render limit for results items | No | 10 |
placeholder | String | Default input placeholder | No | '' |
use-html-for-results | Boolean | If true, displayItem method will display results as html | No | false |
input-class | Array | Override input default classes | No | [] |
results-container-class | Array | Override results container default classes | No | [] |
results-item-class | Array | Override results item default classes | No | [] |
Event | Description |
---|---|
@input | Triggered on user input, should update the local results list |
@onSelect | Triggered when user click on a list item and return the selected item |
MIT
FAQs
## Table of contents
We found that @anthonygore/vue3-autocomplete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.