GradientStyle

Used to display Gradient Styles

TypeScript
export interface GradientStyle extends
Extends

NumericStyledColumn

Properties

PropertyTypeDescriptionDefault
AutoContrastTextbooleanWhen true, sets cell color from tinted background so text stays readable
FontCellFontStyleOptional cell-text styling applied by Gradient renderer on top of gradient background tint
MaxAlphanumberAlpha (0–1) at high end of the matched range’s scale1 (fully opaque at range max)
MinAlphanumberAlpha (0–1) at low end of the matched range’s scale0.15 (faint at range min)
ToolTipTextCellTextOptionsOptional AG Grid tooltip content: cell value and/or position along the range scale (%)
ZeroCentredZeroCentredColorsZero-centred diverging gradient (Col-Min0 and 0Col-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

CellFontStyle

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

CellTextOptions

ZeroCentred

Zero-centred diverging gradient (Col-Min0 and 0Col-Max

TypeScript
ZeroCentred?: ZeroCentredColors;
Property Value

ZeroCentredColors