pnp / pnp/sp-dev-fx-controls-react

Expand All and Collapse All functionality on Button Click

Open
#791 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted type:enhancement
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

I am using the PnP SPFx Accordion control in my SPFx solution I want make all Accordion Expanded and Collapsible on button Click.

Below is my one accordion I am changing the state on button click but some how it does not work.

<Accordion title="Overview" defaultCollapsed={this.state.overviewAccordionCollapsed} className={styles.itemCell} > <div className={styles.itemContent}> <div className={styles.itemReponse}> </div> </div> </Accordion>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Accordion control and the provided defaultCollapsed state example, then reproduce the button-click behavior in an SPFx solution. Determine how the control responds when that state changes; done means a button reliably expands or collapses every accordion instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.