API REFERENCE
ConditionalFormatRule
Fields, allowed values, and APIs that use ConditionalFormatRule.
Type definition
A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.
export interface ConditionalFormatRule {
field?: string;
condition: CfCondition;
style: CfStyle;
stopIfTrue?: boolean;
}APIs using this type
- conditionalFormats
Rules changing matching cells' visual properties, such as backgrounds and text. Does not mutate source values.
- conditionalFormatsChanged
Emitted when conditional formatting rules change. Save rules as user preferences.