table_getGlobalFacetedUniqueValues

Function: table_getGlobalFacetedUniqueValues()

ts
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)