# Dropdown
To use the custom dropdown you need to import the custom made component:
import {DropDown} from 'src/components'
1
Global usage
Vue.component(DropDown)
1
For local usage
export default {
components: {
DropDown
}
}
1
2
3
4
5
2
3
4
5
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 that the dropdown will be rendered with through the tag
prop
# As button
# Expand upward
# 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 |
****