Skip to content

Virtualized warning: <tbody> cannot appear as a child of <div>. #73

Answered by rwieruch
bezvrednyy asked this question in Q&A
Discussion options

You must be logged in to vote
  1. See #71
  2. Yes, we need an explicit height for the whole table. You should check out "Features/Fixed Header" in the documentation for finding two strategies on how to apply a height to the table. There either the container has a fixed height or the container is a flex box.
  3. rowHeight can either be a number or a function which returns a number:
type RowHeight = number | ((item: TableNode, index: number) => number);

There is not a great support for a Footer yet, because the company I created the library for didn't have any need for it. However, if there are more requests for it, I will tackle it :)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rwieruch
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rwieruch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants