vue-select-picker-bootstrap

SelectPicker for VueJS Developers
1,986 1
Install
npm install vue-select-picker-bootstrap
Latest Version:1.0.5
Vue:2
License:ISC
Last Updated:Jan 21, 2022
Links: GitHub  ·  npm
Maintainer: ammadbaig10

Vue Select Picker

It's for VueJs developers for rendering selectpicker in components.

Installation

npm i vue-select-picker-bootstrap

img_2.png

Properties

prop type Default Description
defaultTitle String Nothing Selected Title as showing default on selectbox.
searchable Boolean false Options search functionality.
disabled Boolean false For disabling selectbox.
searchPlaceholder String Search Placeholder on search text field.
searchNotFound String No results matched When option not found after search.
addClass String null Add extra class for style or any other purpose if needed.

Basic Example Code:

<template>
    <VSelect
          v-model="selected"
          :options="countries"
        />
</template>
<script>
import VSelect from "@/vue-select-picker-bootstrap";
export default {
  name: "App",
  components: {
    VSelect
  },
  data() {
    return {
      countries: [
        { value: 1, text: "Pakistan" },
        { value: 2, text: "China" },
        { value: 3, text: "Bangladesh" },
        { value: 4, text: "USA" },
        { value: 5, text: "Australia" },
      ],
      selected: {value: null},
    };
  }
};
</script>

For Default Selection: Example (Bangladesh will be default selected)

export default {
  name: "App",
  components: {
    VSelect
  },
  data() {
    return {
      countries: [
        { value: 1, text: "Pakistan" },
        { value: 2, text: "China" },
        { value: 3, text: "Bangladesh" },
        { value: 4, text: "USA" },
        { value: 5, text: "Australia" },
      ],
      selected: {value: 3},
    };
  }
};

Example:

<script>
import VSelect from "@/vue-select-picker-bootstrap";
export default {
  name: "App",
  components: {
    VSelect
  },
  data() {
    return {
      stateOptions: [
        { value: 1, text: "<i class='fa fa-circle' style='color:green;'></i> Enable" },
        { value: 0, text: "<i class='fa fa-circle' style='color:red;'></i> Disabled" },
      ],
      selected: {value: 0},
    };
  }
};
</script>

Related Packages

vue-selectpicker

vue select selectpicker

3,691 1
vue3-select-component

A flexible & modern select-input control for Vue 3.

649,098 119
vue-treeselect

a tree select plugin for vue2

15,534 43
@livelybone/vue-select

A vue select component, includes cascader

7,060 16

Version History

Version Released Vue License
1.0.5 ^2.6.10 ISC
1.0.4 ^2.6.10 ISC
1.0.3 ^2.6.10 ISC
1.0.2 ^2.6.10 ISC
1.0.1 ^2.6.10 ISC