Collapse
Introduction
La librairie nécessite les fichiers javascripts associés (collapse).
Le principe est de pouvoir ouvrir / fermer des blocs à partir d'un interrupteur.
Sur l'interrupteur, l'attribut data-toggle="collapse" est obligatoire.
Ensuite, il est possible de cibler le bloc à ouvrir / fermer via l'attribut data-target sur l'interrupteur ou bien utiliser un a href avec un role-"button".
En savoir plus
Exemple
Some placeholder content for the collapse component. This panel is hidden by default but revealed when the user activates the relevant trigger.
Cibles multiples
Some placeholder content for the first collapse component of this multi-collapse example. This panel is hidden by default but revealed when the user activates the relevant trigger.
Some placeholder content for the second collapse component of this multi-collapse example. This panel is hidden by default but revealed when the user activates the relevant trigger.
Accordion
Some placeholder content for the first accordion panel. This panel is shown by default, thanks to the
.show class.
Some placeholder content for the second accordion panel. This panel is hidden by default.
And lastly, the placeholder content for the third and final accordion panel. This panel is hidden by default.
Thème