Render props for the header column of Antd Table with TableRowSelection
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
Currently, for a table with rowSelection TableRowSelection, we have a props to customize renderCell
which allow us to write our own checkboxes, however for the select all
checkbox inside the header we do not have such an API to access it.
What does the proposed API look like?
maybe an attribute named renderHeader
somehow inside TableRowSelection
may fit the demand as above
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Table - Ant Design
A table displays rows of data. ... Since this is just a syntax sugar for the prop columns , you can't compose Column...
Read more >Can one control the state of Antd Table's "Check All" control?
If you click the 'Select All' checkbox in the selection column header, Antd will select all the rows on the current page but...
Read more >Table - Ant Design - GitHub Pages
A Solution for displaying large amounts of data with long columns. Specify the width of columns if header and cell do not align...
Read more >An Introduction to Ant Tables for JavaScript Developers
The table's components (lines 87-89) are rendered by the renderVitualList function (lines 43-75). Each column is assigned the width prop (lines ...
Read more >React Table Row Selection Example - TanStack
React Example: Row Selection. CodeSandbox. tanstack-table-example-row-selection. 345. 0. 0. Edit Sandbox. Files. src .gitignore. README.md. index.html.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any updates on this?
I’d also need to make use of this. Our goal is to change the props of the Checkbox (e.g. adding
data-*
attributes to it. It works perfectly fine for the checkboxes in the rows but for the header, it seems like I’m out of luck.I’d be fine with either way:
getHeaderCheckboxProps
andrenderHeaderCell
being added just likegetCheckboxProps
andrenderCell
columnTitle
providing the default renderer as a parameter so that we can just inject props (like inrenderCell
, see below)I am able to do this: