You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on a way to have two buttons; [Expand All] and [Collapse All], for the Accordion. Each button does exactly what it's labeled. I'm "kinda" working with manipulated the classList via a useRef hook and adding the show class to each accordion-collapse, but that approach seemed hacky and has it's problems.
Is there a something out of the box that does this and I'm just missing it? If not, any ideas on how I can achieve this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been working on a way to have two buttons; [Expand All] and [Collapse All], for the Accordion. Each button does exactly what it's labeled. I'm "kinda" working with manipulated the classList via a useRef hook and adding the
show
class to eachaccordion-collapse
, but that approach seemed hacky and has it's problems.Is there a something out of the box that does this and I'm just missing it? If not, any ideas on how I can achieve this?
Beta Was this translation helpful? Give feedback.
All reactions