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
conditionalFormats: ConditionalFormatRule[]| Item | Value |
|---|---|
| JavaScript name | conditionalFormats |
| HTML attribute | conditional-formats |
| Default | undefined |
| Input type | ConditionalFormatRule[] |
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
- Conditional formatting
Conditional formatting changes visual properties such as background and text color based on a value's meaning. Use it to identify low stock or exceeded targets without changing source values or validation results.