InFilterValue
Item in the IN Column Filter
export interfaceProperties
| Property | Type | Description |
|---|---|---|
| children | InFilterValue<ValueType>[] | Child items, used for a grouped or date tree. Selecting a parent selects its leaves. |
| expressionFunction | string | Name of a no-input (unary, column-only) boolean AdapTable Expression Function to apply to this Column when the Item is selected — e.g. 'IS_BLANK', 'IS_POSITIVE', 'IS_YESTERDAY'.Instead of matching value literally in the IN list, AdapTableevaluates <expressionFunction>([thisColumn]) and OR-combines it withthe rest of the filter. AdapTable injects the Column, so the developer does not need to write any AQL. The named function must be a known unary boolean Expression Function that is applicable to the Column's data type; otherwise the Item is skipped (with a console warning). |
| label | string | InFilterValueLabelFn | 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:The function receives the item's default (same shape as context.defaultValues), looked up by value. |
| level | number | Depth of this item when the list is a tree. 0 is the root. |
| tooltip | boolean | string | Tooltip for Item (if true, the label is used as tooltip) |
| value | ValueType | The value of Item being shown. Optional when expressionFunction is provided (the function name isthen used as the item's identity). |
Property Details
children
Child items, used for a grouped or date tree. Selecting a parent selects its leaves.
children?: InFilterValue<ValueType>[];Property Value
InFilterValue<ValueType>[]
expressionFunction
Name of a no-input (unary, column-only) boolean AdapTable Expression
Function to apply to this Column when the Item is selected — e.g.
'IS_BLANK', 'IS_POSITIVE', 'IS_YESTERDAY'.
Instead of matching value literally in the IN list, AdapTable
evaluates <expressionFunction>([thisColumn]) and OR-combines it with
the rest of the filter. AdapTable injects the Column, so the developer
does not need to write any AQL.
The named function must be a known unary boolean Expression Function that is applicable to the Column's data type; otherwise the Item is skipped (with a console warning).
expressionFunction?: string;Property Value
string
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:
```tslabel: (item) => ${item.label} (${item.visibleCount})
The function receives the item's default (same shape
as `context.defaultValues`), looked up by `value`.
```ts title="TypeScript"
label: string | InFilterValueLabelFn;Property Value
string | InFilterValueLabelFn
level
Depth of this item when the list is a tree. 0 is the root.
level?: number;Property Value
number
tooltip
Tooltip for Item (if true, the label is used as tooltip)
tooltip?: boolean | string;Property Value
boolean | string
value
The value of Item being shown.
Optional when expressionFunction is provided (the function name is
then used as the item's identity).
value?: ValueType;Property Value
ValueType