2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

Add link to accordion page from data-bs-parent snippet in Collapse docs

This commit is contained in:
Mark Otto
2021-07-18 21:46:37 -07:00
parent 06a1ca5623
commit f441ca262f
+1 -1
View File
@@ -126,7 +126,7 @@ These classes can be found in `_transitions.scss`.
Just add `data-bs-toggle="collapse"` and a `data-bs-target` to the element to automatically assign control of one or more collapsible elements. The `data-bs-target` attribute accepts a CSS selector to apply the collapse to. Be sure to add the class `collapse` to the collapsible element. If you'd like it to default open, add the additional class `show`.
To add accordion-like group management to a collapsible area, add the data attribute `data-bs-parent="#selector"`. Refer to the demo to see this in action.
To add accordion-like group management to a collapsible area, add the data attribute `data-bs-parent="#selector"`. Refer to the [accordion docs]({{< docsref "/components/accordion" >}}) to see this in action.
### Via JavaScript