Multiple Rows in a Cell #275
-
Is there any way to display multiple values in a given cell on different lines? I have tried a few approaches such as inserting "<br/>" and '/n' between them. I am looking to display something in a given row for a given column What I seem to get is: |
Beta Was this translation helpful? Give feedback.
Answered by
icflorescu
Apr 25, 2023
Replies: 1 comment
-
You can absolutely display on different lines in a given cell. {
accessor: 'name',
render: ({ firstName, lastName }) => (
<>
{firstName}
<br />
{lastName}
</>
),
},
// ... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
icflorescu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can absolutely display on different lines in a given cell.
The column
render
method accepts the current record and must return aReactNode
.In the simplest usage scenario you could have a column definition like so: