Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Help with ideas on how to expand/collapse all Accordion items? #413

Unanswered
mmg-mike asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.