Permalink
Browse files

feat(dropdown, nav-item-dropdown): support menuClass and extraMenuCla…

…sses (#1683)
  • Loading branch information...
RomeroMsk authored and pi0 committed Mar 31, 2018
1 parent e3336c5 commit 3da5f184f91b928cf34de4d169cf00e56f2dde4d
Showing with 16 additions and 3 deletions.
  1. +9 −2 src/components/dropdown/dropdown.js
  2. +7 −1 src/components/nav/nav-item-dropdown.js
@@ -95,6 +95,10 @@ export default {
type: String,
default: null
},
menuClass: {
type: [String, Array],
default: null
},
toggleClass: {
type: [String, Array],
default: null
@@ -135,8 +139,11 @@ export default {
menuClasses () {
return [
'dropdown-menu',
this.right ? 'dropdown-menu-right' : '',
this.visible ? 'show' : ''
{
'dropdown-menu-right': this.right,
'show': this.visible
},
this.menuClass
]
},
toggleClasses () {
@@ -72,7 +72,8 @@ export default {
return [
'dropdown-menu',
this.right ? 'dropdown-menu-right' : 'dropdown-menu-left',
this.visible ? 'show' : ''
this.visible ? 'show' : '',
this.extraMenuClasses ? this.extraMenuClasses : ''
]
}
},
@@ -86,6 +87,11 @@ export default {
type: String,
default: ''
},
extraMenuClasses: {
// Extra Menu classes
type: String,
default: ''
},
role: {
type: String,
default: 'menu'

0 comments on commit 3da5f18

Please sign in to comment.