Skip to content

FilterValueOption

Since v3.10.0

A filter value paired with the label the set filter panel should show for it.

Return these from a FilterValuesHandler when the server knows the display text. Server-fetched values have no rows, so the panel can’t call column.format(value, row) with a real row for them. Same { value, label } shape as ColumnConfig.options.

valuesHandler: async (field) => {
const res = await fetch(`/api/distinct/${field}`);
const rows: { id: string; name: string }[] = await res.json();
return rows.map((d) => ({ value: d.id, label: d.name }));
}
PropertyTypeDescription
valueunknownThe value the filter matches against (what ends up in the filter model).
labelstringText shown next to the checkbox and matched by the panel’s search box.