Custom title for 'Select' column #252
-
|
Hi, I am using a row selection and I want to define a custom title/text for Select header. See below screenshot. the default value is 'Select', I want to define specific string. I tried to add a custom column with accessorKey: 'mrt-row-select' but seems like that the table renders it like a new independent column. Also I wasn't able to find any option how to pass a custom title for Select header.
Thank for any advice/suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
This is kind of covered in the display columns docs - https://www.material-react-table.com/docs/guides/display-columns But pretty much you're looking for: displayColumnDefOptions={{ 'mrt-row-select': { header: 'Your Custom Header' } }} |
Beta Was this translation helpful? Give feedback.
-
|
@KevinVandy thanks, works like a charm. Haven't noticed this in docs. |
Beta Was this translation helpful? Give feedback.

This is kind of covered in the display columns docs - https://www.material-react-table.com/docs/guides/display-columns
But pretty much you're looking for: