InFilterValue

Item in the IN Column Filter

TypeScript
export interface

Properties

PropertyTypeDescription
childrenInFilterValue<ValueType>[]
labelstring | (item:InFilterValueInfo) => stringItem's label. Either a string, or a function that returns the label. The function is re-evaluated whenever filtering changes, so the label can embed live info (e.g. visibleCount) without customInFilterValues being called again.
levelnumber
tooltipboolean | stringTooltip for Item (if true, the label is used as tooltip)
valueValueTypeThe value of Item being shown

Property Details

children

TypeScript
children?: InFilterValue<ValueType>[];
Property Value

InFilterValue<ValueType>[]

label

Item's label.

Either a string, or a function that returns the label. The function is re-evaluated whenever filtering changes, so the label can embed live info (e.g. visibleCount) without customInFilterValues being called again:

label: (item) => `${item.label} (${item.visibleCount})`

The function receives the item's default InFilterValueInfo (same shape as context.defaultValues), looked up by value.

TypeScript
label: string | ((item: InFilterValueInfo) => string);
Property Value

string \| (item:InFilterValueInfo) => string

level

TypeScript
level?: number;
Property Value

number

tooltip

Tooltip for Item (if true, the label is used as tooltip)

TypeScript
tooltip?: boolean | string;
Property Value

boolean | string

value

The value of Item being shown

TypeScript
value: ValueType;
Property Value

ValueType