pnp / pnp/sp-dev-fx-controls-react
Expand All and Collapse All functionality on Button Click
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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