TanStackT
TanStack3y ago
1 reply
technological-jade

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,
  };


Please if someone can elaborate more on this, would be really really appreciated ! Thanks !
Was this page helpful?