Skip to content

Multiple Rows in a Cell #275

Closed Answered by icflorescu
rezlab asked this question in Q&A
Discussion options

You must be logged in to vote

You can absolutely display on different lines in a given cell.
The column render method accepts the current record and must return a ReactNode.
In the simplest usage scenario you could have a column definition like so:

{
  accessor: 'name',
  render: ({ firstName, lastName }) => (
    <>
      {firstName}
      <br />
      {lastName}
    </>
  ),
},
// ...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by icflorescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants