pnp / pnp/sp-dev-fx-controls-react
[TreeView] Expand/Collapse behavior
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 433
- Forks
- 418
- Avg merge
- 5d 6m
- Merged PRs (30d)
- 19
Description
Category
- Enhancement
- Bug
- Question
Version
Please specify what version of the library you are using: [3.11.0]
Expected / Desired Behavior / Question
Hello,
I'm trying to implement Expand All/Collapse All behavior and can't figure out how to do that and is it even possible. Unlike defaultSelectedKeys, defaultExpandedKeys changes are not handling.
So, the question, is it possible to make expand/collapse controllable?
Thanks!
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 by locating the TreeView component and reading how defaultSelectedKeys and defaultExpandedKeys are handled. Check the existing props, state flow, and related usage examples to determine what controllable expand/collapse behavior would require. Done means the supported behavior is defined and verified for expanding and collapsing all nodes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100