Can someone please explain to me the faceted values? Broken documentation page.
Documentation on the official page is 404.
https://tanstack.com/table/v8/docs/guide/faceted-values

2 Replies
eastern-cyan•2y ago
yeah sorry, there's been a large docs reorg and rewrite at the same time that I'm in the middle of
Faceted values (or should be the faceted-columns page link) is a feature that scans all of the unique values in a column and generates that list. This. is useful for making auto-complete filters with all of the unique values in that column as search suggestions.
Also can be used to find the min and max values of a range filter available for number/date columns
so this feature usually goes hand-in-hand with filtering features
like-goldOP•2y ago
I am a little bit confused.
getFacetedMinMaxValues
should return [number, number] | undefined
. Why do I sometimes get [[number], number]
? I have some null values in columns. https://stackblitz.com/edit/tanstack-table-sh5i1zJaka Daneu
StackBlitz
Table Filters Example (forked) - StackBlitz
Run official live example code for Table Filters, created by Tanstack on StackBlitz