feat: support expand all control in expandable column header - #1505
feat: support expand all control in expandable column header#1505nikzanda wants to merge 1 commit into
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
@nikzanda is attempting to deploy a commit to the afc163's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@afc163, when you have time, could you please take a quick look at the proposed API ( I opened this as a draft to confirm the API direction before preparing the corresponding Ant Design integration for ant-design/ant-design#8791. Thanks! |
Summary
Add an opt-in expand/collapse-all control to the expandable column header.
This is intended to support the use case described in ant-design/ant-design#8791.
The PR is opened as a draft to confirm the API shape before preparing the corresponding Ant Design integration.
API
expandable.showExpandAllto enable the header control.expandable.expandAllIconto customize its rendering.expandable.onExpandAllto observe expand/collapse-all actions.expandable.columnTitleto be a render function receiving the generated expand-all control.Behavior
rowExpandableare affected.expandedRowKeysare supported.expandedRowRendertables.Testing
Added regression coverage for:
rowExpandablefilteringexpandedRowKeysexpandAllIconcolumnTitleValidation:
yarn test tests/ExpandRow.spec.jsxyarn tscyarn lint