GradientStyle
Used to display Gradient Styles
TypeScript
export interface GradientStyle extendsExtends
Properties
| Property | Type | Description | Default |
|---|---|---|---|
| AutoContrastText | boolean | When true, sets cell color from tinted background so text stays readable | |
| Font | CellFontStyle | Optional cell-text styling applied by Gradient renderer on top of gradient background tint | |
| MaxAlpha | number | Alpha (0–1) at high end of the matched range’s scale | 1 (fully opaque at range max) |
| MinAlpha | number | Alpha (0–1) at low end of the matched range’s scale | 0.15 (faint at range min) |
| ToolTipText | CellTextOptions | Optional AG Grid tooltip content: cell value and/or position along the range scale (%) | |
| ZeroCentred | ZeroCentredColors | Zero-centred diverging gradient (Col-Min…0 and 0…Col-Max |
Property Details
AutoContrastText
When true, sets cell color from tinted background so text stays readable
TypeScript
AutoContrastText?: boolean;Property Value
boolean
Font
Optional cell-text styling applied by Gradient renderer on top of gradient background tint
TypeScript
Font?: CellFontStyle;Property Value
MaxAlpha
Alpha (0–1) at high end of the matched range’s scale
TypeScript
MaxAlpha?: number;Default Value
1 (fully opaque at range max)
Property Value
number
MinAlpha
Alpha (0–1) at low end of the matched range’s scale
TypeScript
MinAlpha?: number;Default Value
0.15 (faint at range min)
Property Value
number
ToolTipText
Optional AG Grid tooltip content: cell value and/or position along the range scale (%)
TypeScript
ToolTipText?: CellTextOptions;Property Value
ZeroCentred
Zero-centred diverging gradient (Col-Min…0 and 0…Col-Max
TypeScript
ZeroCentred?: ZeroCentredColors;