Skip to main content

TableRowCriteria

type TableRowCriteria = Record<string, ConditionOperator>;

Criteria for conditional styling of table rows Maps table column name/key to condition operators that determine when styles should be applied

Example

const criteria: TableRowCriteria = {
status: { eq: 'active' },
amount: { gt: 1000 },
type: { in: ['urgent', 'critical'] },
description: { regex: '^Important.*' }
};