BootstrapComponents/Accordion
De Semantic MediaWiki - Sandbox
→ Back to Bootstrap Components overview
Description[modifier | modifier le wikicode]
An accordion can group a number of panels together in a way, that all except one are collapsed.
For available options to this component, please see the documentation on github.
Please also visit the github documentation when looking for help for the panel component.
Example[modifier | modifier le wikicode]
<bootstrap_accordion>
<bootstrap_panel heading="Headline for Panel1">Text inside the panel</bootstrap_panel>
<bootstrap_panel heading="Headline for Panel2" color="danger">Text inside the panel</bootstrap_panel>
<bootstrap_panel heading="Headline for Panel3" active>Text inside the panel</bootstrap_panel>
<bootstrap_panel heading="Headline for Panel4" color="info">Text inside the panel</bootstrap_panel>
</bootstrap_accordion>
Headline for Panel1
Text inside the panel
Headline for Panel2
Text inside the panel
Headline for Panel3
Text inside the panel
Headline for Panel4
Text inside the panel