LiveUiKit.UI.Dropdown (LiveUIKit v0.1.4)
Dropdown can open a menu or any other element when the button is clicked.
Link to this section Summary
Link to this section Functions
Link to this function
dropdown(assigns)
Dropdown component:
examples
Examples
<.dropdown label="Some Dropdown">
<.dropdown_menu>
<li>
<a href="#">Settings</a>
</li>
<li>
<a href="#">Sign Out</a>
</li>
</.dropdown_menu>
</.dropdown>
options
Options
label
- If provided, it can use the label string as the toggle text.toggle_class
- The class or classes that will be appended to the toggle element.extended_class
- The class or classes that will be appended to the default class attribute.
All further assigns will be passed to the dropdown tag.
Link to this function