Closed dshiryaev-plesk closed 4 years ago
Q | A |
---|---|
Is bugfix? | no |
New feature? | yes |
Breaks BC? | no |
Tests pass? | |
Fixed issues | #187 |
Why? It exists: https://github.com/yiisoft/yii2-bootstrap4/blob/master/src/Accordion.php
I think a Collapse is for a single panel, while an accordion is for multiple? https://getbootstrap.com/docs/4.3/components/collapse/#example
According the comment no, both are accordions. That's why I renamed the class from Collapse to Accordion when we started to create bs4 repository from bs3 one: https://github.com/yiisoft/yii2-bootstrap4/pull/188/files#diff-d26b3b1cb47b86484c8db442084dd915R14
Oh :)
Thanks, @simialbi :)
And thank you, @dshiryaev-plesk for the pull request.
Thanks for the explanation.
The Accordion class name is confusing because there is no Accordion component in Bootstrap 4: https://getbootstrap.com/docs/4.4/components/collapse.
Yeah what you link here is not the accordion. It's the collapse, it's used in many ways in bootstrap. The accordion itself is called accordion in bootstrap too: https://getbootstrap.com/docs/4.4/components/collapse/#accordion-example