LiveUiKit.UI.Accordion (LiveUIKit v0.2.0)

Dropdown can open a menu or any other element when the button is clicked.

Link to this section Summary

Functions

Dropdown component

Link to this section Functions

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.