
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
alopuselect
Advanced tools
A native Vue.js component that provides similar functionality to Select2 without the overhead of jQuery.
A native Vue.js select component that provides similar functionality to Select2 without the overhead of jQuery.
vue ~2.0 use alopuselect ~2.0vue ~1.0 use alopuselect ~1.0Install the package. You should install alopuselect@1.3.3 for use with vue ~1.0.
$ npm install alopuselect
Register the component
import Vue from 'vue'
import vSelect from 'alopuselect'
Vue.component('v-select', vSelect)
You may now use the component in your markup
<v-select v-model="selected" :options="['foo','bar']"></v-select>
Just include vue & alopuselect.js - I recommend using unpkg.
<script src="https://unpkg.com/vue@latest"></script>
<!-- use the latest release -->
<script src="https://unpkg.com/alopuselect@latest"></script>
<!-- or point to a specific release -->
<script src="https://unpkg.com/alopuselect@1.3.3"></script>
Then register the component in your javascript:
Vue.component('v-select', VueSelect.VueSelect);
You may now use the component in your markup
<v-select v-model="selected" :options="['foo','bar']"></v-select>
Here's an example on JSBin.
The most common use case for alopuselect is to have the chosen value synced with a parent component. alopuselect takes advantage of the v-model syntax to sync values with a parent.
<v-select v-model="selected"></v-select>
new Vue({
data: {
selected: null
}
})
alopuselect accepts arrays of strings and objects to use as options through the options prop.
<v-select :options="['foo','bar']"></v-select>
When provided an array of objects, alopuselect will display a single value of the object. By default, alopuselect will look for a key named 'label' on the object to use as display text.
<v-select :options="[{label: 'foo', value: 'Foo'}]"></v-select>
FAQs
A native Vue.js component that provides similar functionality to Select2 without the overhead of jQuery.
The npm package alopuselect receives a total of 8 weekly downloads. As such, alopuselect popularity was classified as not popular.
We found that alopuselect 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.