What problem does it solve?
Hidden columns often remain in the DOM because developers render all-cell APIs instead of visibility-aware ones, and the difference between an absent visibility entry and an explicit false value is frequently misunderstood.
Core Features & Use Cases
- Visibility-aware rendering: Use getVisibleCells and visibility-aware header groups so hidden columns never appear in rendered table content.
- Hide-toggle controls: Build column toggle menus from getAllLeafColumns filtered by getCanHide, keeping controls separate from rendered output.
- Correct state semantics: Treat only explicit false in columnVisibility state as hidden, and keep enableHiding separate from actual visibility state.
- Use Case: A React datagrid lets users hide an internal ID column via a settings dropdown while the table body and headers automatically exclude it.
Quick Start
Ask the AI to set up columnVisibilityFeature in a TanStack Table instance and render only visible cells and headers with a column hide toggle menu.