🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/sandalf/vue-bootstrap-select

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sandalf/vue-bootstrap-select

v0.0.0-20190719200007-1d7ab520b7b4
Source
Go
Version published
Created
Source

AUR version npm bundle size (minified)

@alfsnd/vue-bootstrap-select

A vue version of bootstrap select

Demo

Edit Vue Bootstrap Select Demo

Install

npm install @alfsnd/vue-bootstrap-select --save

Usage

import VSelect from '@alfsnd/vue-bootstrap-select'

export default {
  name: 'app',
  components: {
    VSelect
  },
  data() {
    return {
      selectedValue: null
    };
  }
}
<template>
  <div id="app">
    <v-select :options="[{value: 1, text: 'Item 1'}, {value: 2, text: 'Item 2'}]" v-model="selectedValue" />
  </div>
</template>

Passing options

The options prop accepts arrays of strings

  <v-select :options="['Item 1', 'Item 2']" />

And arrays of objects

<v-select :options="[{value: 1, text: 'Item 1'}, {value: 2, text: 'Item 2'}]" />

Props

parameterdescriptiontypedefaultacceptable value
disableddisables selectBooleanfalse
disabledPropallows to disable specific options. If an option has this prop set to a truthy value it will disable the option.Stringdisabled
labelNotFoundtext displayed when no option is found in the search resultsStringNo results matched
labelSearchPlaceholderplaceholder text for search inputStringSearch
optionslist of optionsArray[]
searchabledisplay search inputBooleanfalse
showDefaultOptionsets the select title is set as an optionBooleanfalse
textPropthe option's prop that is displayed as the option's textStringtext
valuePropthe option's prop that is used to find the selected valueStringvalue

FAQs

Package last updated on 19 Jul 2019

Did you know?

Socket

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.

Install

Related posts