
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
@lassehaslev/vue-item-picker
Advanced tools
Item picker for Vue.js v2
Run npm install @lassehaslev/vue-item-picker --save in your project folder
This package is divided into two main modules. BaseItemPicker and BaseItemPickerItem
import { BaseItemPicker } from '@lassehaslev/vue-item-picker';
import ImagePickerItem from './ImagePickerItem';
export default {
template: `
<div class="modal"
:class="{ 'is-active': isShowingModal }">
<div class="modal-background" @click="close"></div>
<div class="modal-content">
<div class="box">
<slot>
<h4 class="title">Please select an image</h4>
</slot>
<div class="columns is-mobile is-multiline">
<image-picker-item v-for="item in pickerItems" :selected="selectedItems" @confirm="confirm" @select="onItemSelect" :picker-item="item" :itemAdaptor="itemAdaptor"></image-picker-item>
</div>
<button class="button is-primary" @click="confirm">Confirm</button>
<button class="button is-default" @click="cancel">Cancel</button>
</div>
</div>
<button class="modal-close" @click="close"></button>
</div>
`,
mixins: [ BaseItemPicker ],
components: {
ImagePickerItem,
}
}
import { BaseItemPickerItem } from '@lassehaslev/vue-item-picker';
export default {
template: `
<div class="column is-3">
<div v-if="item.url"
style="padding-bottom: 100%"
@dblclick.prevent="confirm"
@click="select"
:style="{
'background-image': 'url(' + item.url + ')',
'background-size':'contain',
'background-position':'center',
'background-repeat': 'no-repeat',
'background-color': '#ccc',
'cursor':'pointer',
'outline': isSelected ? '5px solid #0762D9' : '',
}">
</div>
</div>
`,
mixins: [ BaseItemPickerItem ],
}
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.
FAQs
Item picker logic for Vue.js v2
We found that @lassehaslev/vue-item-picker 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.