[Doc] Add <DataTable hiddenColumns> documentation#10800
Merged
fzaninotto merged 1 commit intomasterfrom Jun 24, 2025
Merged
Conversation
<DataTable hiddenColumns>
fzaninotto
requested changes
Jun 24, 2025
| ); | ||
| ``` | ||
|
|
||
| ## `hiddenColumns` |
Member
There was a problem hiding this comment.
please place this section in alphabetical order with other props.
|
|
||
| By default, `<DataTable>` renders all `<DataTable.Col>` children. Use the `hiddenColumns` property to set hidden columns by default. | ||
|
|
||
| Using the `hiddenColumns` property instead of removing `<DataTable.Col>` elements entirely allows hidden columns to be displayed again using a `ColumnsButton`, as in [Hiding or Reordering](#hiding-or-reordering-columns) section. |
Member
There was a problem hiding this comment.
Suggested change
| Using the `hiddenColumns` property instead of removing `<DataTable.Col>` elements entirely allows hidden columns to be displayed again using a `ColumnsButton`, as in [Hiding or Reordering](#hiding-or-reordering-columns) section. | |
| Using the `hiddenColumns` instead of removing `<DataTable.Col>` elements allows hidden columns to be displayed again using a `<ColumnsButton>`, as explained in the [Hiding or Reordering Columns](#hiding-or-reordering-columns) section. |
|
|
||
| ```tsx | ||
| const PostList = () => ( | ||
| <List actions={<PostListActions />}> |
Member
There was a problem hiding this comment.
I'd show the PostListActions with its ColumnsButton, otherwise the example falls short.
Contributor
Author
There was a problem hiding this comment.
I did it, but wouldn't it be better to keep this example minimal to only demonstrate the documented property?
I'd remove entirely, as the documentation about Hiding or Reordering Columns already documents this.
|
|
||
| Using the `hiddenColumns` property instead of removing `<DataTable.Col>` elements entirely allows hidden columns to be displayed again using a `ColumnsButton`, as in [Hiding or Reordering](#hiding-or-reordering-columns) section. | ||
|
|
||
| ```tsx |
Member
There was a problem hiding this comment.
I'd put this code snippet right after the first sentence, "by default..."
d4195bc to
42d81e4
Compare
fzaninotto
approved these changes
Jun 24, 2025
<DataTable hiddenColumns><DataTable hiddenColumns> documentation
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.
Problem
We mention and link the prop
hiddenColumnsbut we didn’t write anything about it.Solution
Write a section of the
DataTableon thehiddenColumnsprop.Additional Checks
masterfor a bugfix or a documentation fix, ornextfor a feature[ ] The PR includes unit tests (if not possible, describe why)[ ] The PR includes one or several stories (if not possible, describe why)