While trying to use a shortcut, I managed to press the wrong keys, which hid the collapse/expand buttons, i.e. the minus/plus buttons that can collapse or expand a class. How can I show them again?
This pattern creates a button that toggles an element as hidden (collapsed) or not hidden (expanded). The element's current state and changes in the element's state are communicated to screen reader users.
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" .
To control (show/hide) the collapsible content, add the data-toggle="collapse" attribute to an <a> or a <button> element. Then add the data-target="#id" attribute to connect the button with the collapsible content (<div id="demo">).
Toggle Folding Ctrl + /
(numpad divide). For the list of all shortcuts : Ctrl + Shift + L
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With