Skip to content

Can anyone explain what header.isPlaceholder() is doing? #4828

Discussion options

You must be logged in to vote

+ 1

The secret is lay down here

if (isLeafHeader && headerToGroup.column.parent) {
  // The parent header is new
  column = headerToGroup.column.parent
} else {
  // The parent header is repeated
  column = headerToGroup.column
  isPlaceholder = true
}

I suppose, it is related with grouping the headers, and it is an internal mechanism of the react-table, you don't need to set it explicitly. Someone can explain better, that is my comment from the reading of the code.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@elliotgonzalez-lk
Comment options

@FlorysiakSimon
Comment options

Answer selected by elliotgonzalez-lk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants