API REFERENCE

conditionalFormats

Rules changing matching cells' visual properties, such as backgrounds and text. Does not mutate source values.

What does this API do?

Rules changing matching cells' visual properties, such as backgrounds and text. Does not mutate source values.

Exact input and result types

typescript
conditionalFormats: ConditionalFormatRule[]
ItemValue
JavaScript nameconditionalFormats
HTML attributeconditional-formats
Defaultundefined
Input typeConditionalFormatRule[]

Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Read related types

Feature explanations and examples