-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(treeview): add experimental controllable API #15397
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
@tay1orjones @emyarod Let me know if you have any questions around this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey this looks really solid! Sorry it took so long for a review 😓
I think the feature flag name is good - so far the loose (undocumented) thinking I have on it is v12-*
flags are committed to be turned on by default in the next major. We could always rename this flag if/when we think that's the case, but in the meantime I think naming it as is feels appropriate.
This LGTM! @emyarod do you have a chance to give this a review before we merge? |
b6710e7
…em#15397) Co-authored-by: Andrea N. Cardona <[email protected]>
Ref #14451 / Point 1
This PR introduces an experimental controllable API for the TreeView to address point 1 mentioned in above linked discussion.
A user must opt-in via the feature flag
enable-treeview-controllable
.Changelog
New
enable-treeview-controllable
props.onActivate
to pass-through node'sonToggle
eventsprops.defaultIsExpanded
for uncontrolled modeChanged
selected
andactive
can be controlled or uncontrolled based on the user's choiceTesting / Reviewing
@tay1orjones I wanted to implement the feature flag approach you shared a while back for this change. Is there any naming guidance for these yet? I avoided
v12
directly and essentially followed this structure:Let me know what you think!