What problem does it solve?
Building faceted filter interfaces (checkbox lists with counts, numeric range sliders) requires deriving filter options from table data while correctly handling how each facet interacts with other active filters, which is error-prone to implement manually.
Core Features & Use Cases
- Faceted Unique Values: Use getFacetedUniqueValues to get a Map of value counts for discrete filter controls like status or category pickers.
- Numeric Range Facets: Use getFacetedMinMaxValues to drive min/max range sliders for numeric columns.
- Own-Filter Exclusion: Each column's facet excludes that column's own filter while applying all other active filters, matching standard faceted search behavior.
- Use Case: Build a product listing sidebar where category checkboxes show live counts that update as the user applies price and brand filters.
Quick Start
Set up columnFacetingFeature with facetedRowModel, facetedUniqueValues, and facetedMinMaxValues in tableFeatures, then read facet counts via column.getFacetedUniqueValues().