T
TanStack3y ago
foreign-sapphire

What is Placeholder in header ?

So I have 2 questions. I have been searching through the official docs but no luck. 1. How do we set the isPlaceholder as true or false for particular header ? 2. What is placeholder header used for ? I am guessing its used for not rendering any specific content or keep the header blank ? I am defining column like this. How do we set the header as placeholder header so that while rendering actual table header.isPlaceholder can be evaluated as true.
let predefColumn = {
accessorKey: '_empty',
cell: () => {},
header: () => {},
maxSize: 4,
enableSorting: false,
};
let predefColumn = {
accessorKey: '_empty',
cell: () => {},
header: () => {},
maxSize: 4,
enableSorting: false,
};
Please if someone can elaborate more on this, would be really really appreciated ! Thanks !
1 Reply
eager-peach
eager-peach3y ago
As as I understand the code of createHeaderGroup function, isPlaceholder is used to help build the HeaderGroup. It controls whether or not to display a header of column in the current group.

Did you find this page helpful?