Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.37 KB

accordion.md

File metadata and controls

45 lines (35 loc) · 1.37 KB

Accordion

An accordion groups collapsible cards together to a single unit in a way, that opening one card closes all others.

Note that cards inside an accordion are collapsible by default. You do not have to set that attribute.

If you want to build an accordion in lua, there a certain things to consider. Please read the corresponding section in the lua documentation.

See also:

Example usage

<bootstrap_accordion [..]>
  <bootstrap_card [..]>Content text for the first panel</bootstrap_card>
  <bootstrap_card [..]>Content text for the second panel</bootstrap_card>
  <bootstrap_card [..]>Content text for the third panel</bootstrap_card>
</bootstrap_accordion>

Allowed Attributes

The following attributes can be used inside the tag:

class
Adds this string to the class attribute of the component. If you want to add multiple classes, separate them by a space.
id
Sets the id of the component to this value. See to it, that it is unique.
style
Adds this string to the style attribute of the component. If you want to add multiple css styles, separate them by a semicolon.

Links