gregnb / gregnb/mui-datatables
Can CustomHeadRender be used to set id ?
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
Can `customHeadRender` be used to set a column's `id` attribute? Would be helpful if there were some examples similar to `customBodyRender` examples in the README.
Very new to Node, React, and mui-datatables ... while I'm aware the project doesn't currently support individual column widths, I'm trying to set a column's `id` attribute and then use the respective value to style/set the column width. Issue #92 '_how to set column width_' suggested using nth-child() selector in the styling, but that does not work in my case because i have hidden columns that can be toggled on/off, and so the nth-child position can change as the user show/hides columns.
## Expected Behavior
Set a column's `id` attribute
## Current Behavior
Columns do not have the option to set `id`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.