0.1.2 • Published 7 years ago

vue-dropdownmenu v0.1.2

Weekly downloads
13
License
MIT
Repository
github
Last release
7 years ago

vue-dropdown

a vue dropdwon menu component

Install

npm install vue-dropdownmenu -S

yarn add vue-dropdownmenu

QuickStart

require('vue-dropdownmenu/dist/vue-dropdown.css');

// in ES6 modules
import dropdown from 'vue-dropdownmenu';

// in CommonJS
const dropdown = require('vue-dropdownmenu');

// in Global variable
const dropdown = VueDropdown.dropdown;

Vue.component('c-dropdown',dropdown);
<c-dropdown v-model="fontFamily" :text-width="100" :menus="aFontFamily"></c-dropdown>

Params

ParameterTypeDefaultDescription
valuestringtwo way binding text show in dropdwon's text area
meusstringthe menu's array, every item with value and text property
textWidthnumbertext area width
typestringradioselect mode, radio or checkbox
selectedClosebooleantruewhether to close menu when menu item selected

Preview

dropdown image

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago