vuex-dropdown
A Vue.js component dropdown
Last updated 2 years ago by lijukrks .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vuex-dropdown 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |