vue3-multiselect-checkboxed

Adds a multiselect component with checkboxes
4,664
Install
npm install vue3-multiselect-checkboxed
Latest Version:0.0.9
Vue:3
License:MIT
Last Updated:Nov 19, 2023
Links: npm
Maintainer: shirker

Vue 3 Multiselect Checkboxed

A simple Vuejs 3 plugin. Adds an old style multiselect form element with checkboxes. Exactly the way in was back in jQuery times

Demo

1243906.playcode.io <-- click "Skip Intro" to see the demo page.

Installation

npm i vue3-multiselect-checkboxed

Usage:

Setup part:

<script setup>
import { Vue3MultiselectCheckboxed } from "vue3-multiselect-checkboxed"
import "vue3-multiselect-checkboxed/style.css"
import { ref } from 'vue'
const result = ref(['AF', 'AL'])
const setResult = (val) => {
  result.value = [...val]
}
const countryListAllIsoData = [
  { code: 'AF', code3: 'AFG', name: 'Afghanistan', number: '004' },
  { code: 'AL', code3: 'ALB', name: 'Albania', number: '008' },
  { code: 'DZ', code3: 'DZA', name: 'Algeria', number: '012' },
  { code: 'AS', code3: 'ASM', name: 'American Samoa', number: '016' },
]
</script>

Template part:

<template>
  <div>
    <Vue3MultiselectCheckboxed
      :options="countryListAllIsoData"
      bindLabel="name"
      bindValue="code"
      :preSelected="result"
      :hasSearch="true"
      @onVSelect="setResult"
    />
  </div>
</template>

Thanks:

Development:

If you want to use this code for your own needs just do

git clone https://github.com/vldmitrofanov/vue3-multiselect-checkboxed.git
cd vue3-multiselect-checkboxed
npm install
npm run dev

Version History

Version Released Vue License
0.0.9 ^3.2.37 MIT
0.0.8 ^3.2.37 MIT
0.0.5 ^3.2.37 MIT
0.0.4 ^3.2.37 MIT
0.0.2 ^3.2.37 MIT