Docs
Cloudflare
Railway
CodeRabbit
WorkOS
OpenRouter
AG Grid
SerpAPI
Netlify
Clerk
Electric
Prisma
Sentry
Unkey
Cloudflare
Railway
CodeRabbit
WorkOS
OpenRouter
AG Grid
SerpAPI
Netlify
Clerk
Electric
Prisma
Sentry
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

table_getGlobalFacetedUniqueValues

Function: table_getGlobalFacetedUniqueValues()

ts
function table_getGlobalFacetedUniqueValues<TFeatures, TData>(table): Map<any, number>;
function table_getGlobalFacetedUniqueValues<TFeatures, TData>(table): Map<any, number>;

Defined in: features/column-faceting/columnFacetingFeature.utils.ts:137

Computes unique values and occurrence counts for the global filter context.

The global context is requested with the internal __global__ column id. If no factory is registered, an empty Map is returned.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

Map<any, number>

Example

ts
const values = table_getGlobalFacetedUniqueValues(table)
const values = table_getGlobalFacetedUniqueValues(table)