feat: support items prop and render function#24125
Closed
ling1726 wants to merge 4 commits intomicrosoft:masterfrom
Closed
feat: support items prop and render function#24125ling1726 wants to merge 4 commits intomicrosoft:masterfrom
items prop and render function#24125ling1726 wants to merge 4 commits intomicrosoft:masterfrom
Conversation
Rendering with React children is still supported, but this PR enables the `items` prop with a render function for rows in `TableBody` for ease of use
Collaborator
📊 Bundle size report🤖 This report was generated against d89096c3760a269822a29aac7452719e1b1293c7 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 61b35de:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: d89096c3760a269822a29aac7452719e1b1293c7 (build) |
Contributor
Author
|
Moving as draft, not sure if there are really any benefits to render functions now that I think about it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rendering with React children is still supported, but this PR enables
the
itemsprop with a render function for rows inTableBody. This allows the component to receive aitemsprop and acolumnsprop (in the future) which will be quite useful for managing internal state.Also considering potentially removing the children API later
Addresses #23983