A regular table like this
<MaterialReactTable
columns={columns}
data={emailResults}
enableColumnFilters={false}
enableMultiRowSelection={false}
onRowSelectionChange={setRowSelection}
>
I dont want to modify emailResults the underlying data structure because this is more of a presentation logic thing and I need the full length data intact.
2
Answers
Just render cell with truncated text and keep the original text the same way
Beside from what Joel has answered, you can also limit the cell width by using CSS (column width remains intact).
You need to modify the
column
object by adding aCell
option which you would use to custom render the data cells.ref- docs