Includes and update to the example showing how to use it.
tableCell/Row props passed to datatable:
result:
I am deleting any "key" returned from the tableCellProps() function. I tried to omit it from the type but was not able to get it to work. I tried Omit<DetailedHTMLProps<TdHTMLAttributes<HTMLTableCellElement>, HTMLTableCellElement>, 'key'> and 2 or 3 other variations (with the omit at different levels) but could not get it to work.
This supports styling rows and columns.
Includes and update to the example showing how to use it.
tableCell/Row props passed to datatable:
result:
I am deleting any "key" returned from the
tableCellProps()
function. I tried to omit it from the type but was not able to get it to work. I triedOmit<DetailedHTMLProps<TdHTMLAttributes<HTMLTableCellElement>, HTMLTableCellElement>, 'key'>
and 2 or 3 other variations (with the omit at different levels) but could not get it to work.