Closed ahmedmmeky closed 1 year ago
set css style={{whiteSpace:"pre"}} can solve it
Hey @VitoriaTangHeng thanks for responding but that didn't work. I tried other whiteSpace styles but had no luck.
Here is my attempt:
https://codesandbox.io/s/react-virtualized-table-forked-2ev0im?file=/index.js
Whitespace is still being ignored.
<Column label="Name" dataKey="name" width={200} style={{ whiteSpace: "pre" }} />
@VitoriaTangHeng Ahh perfect this works now. Thank you very much!
Hey I'm wondering if this is expected behavior but when we pass in row data to the Table component, if a single row element has > 1 whitespace i.e "Ahmed.....Meky" (where periods represent whitespace) the table renders "Ahmed Meky" for that element.
Here is another example:
Is there anything we can do to ensure whitespace is detected by the table?