This component is used to generate a basic bootstrap dropdown.
The contents of the dropdown will be wrapped in the fw-collection-ul and link-ul classes
It works very well for making dropdowns especially for menu bars.
Basic Usage:
<FwDropdown @label='Dropdown'>
<a href="http://example.com">Link 1</a>
<a href="http://example.com">Link 2</a>
</FwDropdown>
_sideClass
Computed Property privateComputes the type of "dropdown" will be used (whether the dropdown is on the left, right, top, or bottom). Watches: side
active
StringIf currently viewing the route identified by this attribute, the active CSS class is added to the link (usually making it bold).
Default: null
icon
StringFont Awesome default icon to use for the toggle. Must have icon name and prefix
Default: null
iconClose
StringFont Awesome icon to use for the button when closed. Must have icon name and prefix
Default: null
iconOpen
StringFont Awesome icon to use for the toggle when open. Must have icon name and prefix
Default: null
right
BooleanIf true, align the menu on the right. Note: if side is set to 'left' or 'right', this attribute is overridden doesn't do anything.
Default: false
tagName
StringThe tagName property will often be set in the FwDropdown, so it is worth mentioning, though it is inhereted by Components.
For documentation on this functionaity, click here
toggleStyle
StringButton style for the dropdown toggle without the 'btn-' prefix. Should be one of the bootstrap styles, commonly: 'default', 'primary', 'danger'. See bootstrap docs for more info. If this is null, 'btn-default' class is used.ed
Default: null
toggleTag
StringHTML Tag for the dropdown toggle. Often this will be set to li because other links in the menu bar are in an ul
Default: 'button'