![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@bachdgvn/vue-auto-complete
Advanced tools
An auto-complete input component for the web built with Vue 2.x.
An auto-complete input component for the web built with Vue 2.x.
To install the latest stable version:
npm install @bachdgvn/vue-auto-complete
Import component in main.js
import VieAutoComplete from "@bachdgvn/vue-auto-complete";
Vue.component("vie-auto-complete", VieAutoComplete);
<template>
<div id="app" style="display: flex; flex-direction: row;">
<div style="flex: 1;">
<div style="margin-bottom: 10px;">
Autocomplete with prepared data
</div>
<vie-auto-complete :items="firstSelectable"
@on-search="onSearch"
/>
</div>
<div style="flex: 1;">
<div style="margin-bottom: 10px;">
Autocomplete with async data
</div>
<vie-auto-complete :items="secondSelectable"
async
@on-input="onInputAsync"
@on-search="onSearch"
/>
</div>
</div>
</template>
<script>
export default {
name: 'app',
data() {
return {
keywords: [],
};
},
computed: {
firstSelectable() {
return [
'Lê Thị Lan',
'Nguyễn Hoài Nam',
'Hoàng Văn Ngọc',
'Đỗ Ngọc Hân',
'Trần Kỳ Phương',
];
},
secondSelectable() {
return this.keywords.map(item => item.keyword);
},
},
methods: {
async onInputAsync(value) {
if (!value || value === '') {
this.keywords = [];
return this.keywords;
}
const url = `http://django.example.com/keywords/?limit=10&offset=0&search=${value}`;
const response = await fetch(url,
{
headers: {
authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkb',
'Content-Type': 'application/json',
},
});
const body = await response.json();
this.keywords = Array.isArray(body.results) ? body.results : [];
return this.keywords;
},
onSearch(value) {
console.log('search: ', value);
},
},
};
</script>
npm install
npm run serve
npm run build
npm run test
npm run lint
FAQs
An auto-complete input component for the web built with Vue 2.x.
The npm package @bachdgvn/vue-auto-complete receives a total of 0 weekly downloads. As such, @bachdgvn/vue-auto-complete popularity was classified as not popular.
We found that @bachdgvn/vue-auto-complete 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.