Socket
Book a DemoInstallSign in
Socket

vuex-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuex-dropdown

A Vue.js component dropdown

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

vuex-dropdown

A vue.js dropdown component

Image of Yaktocat

Installation of vuex-dropdown

npm i --save vuex-dropdown

Browser

Include the script file

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-dropdown/dist/vuex-dropdown.min.js"></script>

Browser Usage

then install the component with Vue.use(VuexDropdown);

<script type="text/javascript">
  Vue.use(VuexDropdown);
</script>

Module

import VuexDropdown from 'vuex-dropdown';

Module Usage

Once installed, it can be used in a template as simply as:

<VuexDropdown
  v-on:onSelect="handleChangedropdown($event)" 
  v-bind:options="options"
  v-bind:selected="selected"
  v-bind:classNames="['wrapper']"/>

Options

[
  {
    label: "Heck",
    value: "heck"
  },
  {
    label: "Jane",
    value: "jane"
  }
]

Selected

{
  label: "Heck",
  value: "heck"
}

classNames

The classnames to wrapp the component

["wrapper"]

License

MIT © Liju Kuriakose

Keywords

vue

FAQs

Package last updated on 26 Jul 2018

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.