Dropdown
To use the custom dropdown you need to import the custom made component:
import {DropDown} from 'src/components'
Global usage
Vue.component(DropDown)
For local usage
export default {
components: {
DropDown
}
}
WARNING
Note Drop-down uses a click outside directive internally. You will get a warning if the directive is not imported.
You can find the declaration of this directive in src/globalDirectives.js
Simple
TIP
You can specify the tag you the drop-down to be rendered as through the tag prop
As button
DropDown Props
Events
| Event Name | Description | Parameters |
|---|---|---|
| change | triggers when the dropdown is opened/closed | the updated value |
Slots
| Name | Description |
|---|---|
| default | content for dropdown menu |
| title | content for dropdown title |