Dropdown
To use the custom dropdown you need to import the custom made component: ```js import {DropDown} from '@/components' ``` Global usage ```js Vue.component(DropDown) ```
For local usage
export default {
components: {
DropDown
}
}
WARNING
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
TIP
You can specify the tag you the drop-down to be rendered as through the tag
prop
Simple
As icon
Attributes
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
title | Dropdown title | string | — | — |
icon | Dropdown icon as a css class | string | — | — |
tag | html tag that you want the dropdown to be rendered as | string | — | li |
titleClasses | Custom title css classes | string | object | array |
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 |