[AnalyticalTable] line break within data cell value #6606
-
Hello, Is there a built-in support for line breaking within a specific cell or column that I am missing from the docs? I have a use-case where I need to visualize a couple of values, each on new line in the same cell, within the same row in one of my columns. Tried with one of the docs demos to pass to one of the data cells a value of "foo1\nfoo2\nfoo3" And I saw that in the generated span title, it was working, but in the value of the span, this was stripped out. Tried passing an array of string -> did not work, it concatenated them on the same row with ",". Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @SvetoslavZ99 per default each cell should only have one line of text, as otherwise the cell content could overflow as the table only allows static row height. If you want to implement multiline cells, it'd recommend using a custom https://stackblitz.com/edit/ui5wcr-at-e6zi3b?file=src%2Fdata.json,src%2FApp.tsx |
Beta Was this translation helpful? Give feedback.
Hi @SvetoslavZ99 per default each cell should only have one line of text, as otherwise the cell content could overflow as the table only allows static row height.
If you want to implement multiline cells, it'd recommend using a custom
Cell
renderer in the columns array and set therowHeight
accordingly.https://stackblitz.com/edit/ui5wcr-at-e6zi3b?file=src%2Fdata.json,src%2FApp.tsx