Skip to content

vue-garden/vue-dropdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-dropdown

This is yet another vue dropdown component.

Install

Use npm to download code:

npm install hsy-vue-dropdown -S

then import it into your project, add below code into your main.js:

import Dropdown from 'hsy-vue-dropdown'

Vue.use(Dropdown)

Usage

<template>
  <dropdown :data="data" :cbChanged="changed"></dropdown>
</template>

<script>
const data = [{
  label: 'Volvo',
  value: 1
}, {
  label: 'Saab',
  value: 2
}, {
  label: 'Long long long long long long test',
  value: 2
}]

export default {
  data() {
    return {
      data
    }
  },
  methods: {
    changed(selected) {
      console.log(selected)
    }
  }
}
</script>

Props

Coming...

Demo

Demo

Screenshot

About

Yet another vue dropdown component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published