StyledColumn
One column drawn with a Styled Column.
Set exactly one of GradientStyle, PercentBarStyle, BulletChartStyle, RangeBarStyle, RatingStyle, IconStyle, BadgeStyle or SparklineStyle. The Settings Panel edits them as alternatives and clears the others when the type changes.
If a cell-renderer style is combined with another, AdapTable uses the first match in this order: Percent Bar, Bullet Chart, Range Bar, Rating, Icon, Badge, Sparkline. GradientStyle is the cell background rather than a replacement renderer, so it still paints when it is set.
Suspend with IsSuspended (inherited from ). A suspended Styled Column is kept in state and is not drawn.
export interface StyledColumn extendsExtends
Properties
| Property | Type | Description |
|---|---|---|
| BadgeStyle | BadgeStyle | Any column. Draws the cell value as a pill. A numberArray or textArray column draws one pill per element; other array types are drawn as a single value.Badges is the list of pill definitions. A Rule is an AdapTableQL boolean expression, evaluated per cell (and per element on a number or text array). Rules are tried in list order and the first match wins. A badge with no Rule is the fallback when no rule matches; if several have no rule, the first of those is used. Density, Spacing and OverflowMode (Truncate, Wrap or Scroll) apply to the whole column. |
| BulletChartStyle | BulletChartStyle | Numeric column. Draws a bullet chart in the cell: the value as a bar, a target as a marker, and optional qualitative bands behind the bar.CellRanges colours those background bands (poor / ok / good). They are not a colour switch for the bar itself, which is what Percent Bar uses CellRanges for. TargetProperties supplies the target. Orientation is Horizontal (the default) or Vertical; a vertical chart needs a tall row. |
| ColumnId | string | colId of the column this style draws.AdapTable uses the first Styled Column with this ColumnId. |
| GradientStyle | GradientStyle | Numeric column. Tints the cell background by where the value sits in a range. The cell text stays. Set CellRanges for bands (a traffic-light scale), or ZeroCentred for a diverging colour either side of 0. ColumnComparison measures this cell against another column. RangeValueType is Number (the default) or Percentage (0–100). |
| IconStyle | IconStyle | Scalar column. Looks the cell value up in Mappings (and an optional Preset) and draws the matching icon.Array columns are not supported; use BadgeStyle to draw one glyph per array element. Preset is Flags, Currencies, Trend or Status. MatchMode is Exact (the default) or CaseInsensitive. When nothing matches, FallbackProperties.Mode is Hide (the default), ShowText or Icon. |
| Name | string | Name shown in the Settings Panel and used by styledColumnApi to find this definition.Unique among Styled Columns. |
| PercentBarStyle | PercentBarStyle | Numeric column. Draws a bar whose length is the cell value on the column's scale.CellRanges colours the bar by which band the value falls in. Origin is where the bar grows from: Auto (the default), Zero, Min, or a fixed number. ColumnComparison measures the cell against another column. |
| RangeBarStyle | RangeBarStyle | Numeric column. Draws a track from Min to Max and a marker at the cell value.Min and Max are required. Each can be a number, another column's colId (that row's value), or Col-Min, Col-Max, Col-Avg or Col-Median across the visible rows. Reference is an optional second marker (a target or a previous close). CellRanges draws background bands on the track. |
| RatingStyle | RatingStyle | Numeric column. Draws a row of icons (stars by default) filled in proportion to the cell value.Max is both the number of icons and the top of the scale, in the same units as the cell value. The default is 5, so a value of 4 fills four of five stars. The value is clamped to [0, Max]. AllowHalf (the default) fills the boundary icon by the fraction; otherwise the value rounds to a whole icon. Icon is Star, Heart, Circle or Thumb. |
| RowScope | RowScope | Which row kinds draw the style: data (leaf) rows, group rows, summary rows and grand-total rows. Each Exclude* flag turns that kind off. When RowScope is omitted, Badge draws on every row kind and every other style draws on every kind except group rows.Sparkline ignores this for non-data rows: it only draws on leaf rows, because the cell value has to be the array of points. |
| SparklineStyle | SparklineStyle | Numeric-array column. The cell value is the series, and AG Grid's sparkline renderer draws it.options is an AG Charts sparkline options object (type: 'line', 'bar', 'area' or 'column'). Only leaf data rows are drawn. |
| IsReadOnly | boolean | Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full') |
| IsSuspended | boolean | Suspends (i.e. turns off) an Adaptable Object |
Property Details
BadgeStyle
Any column. Draws the cell value as a pill. A numberArray or textArray column draws one pill per element; other array types are drawn as a single value.
Badges is the list of pill definitions. A Rule is an AdapTableQL boolean expression, evaluated per cell (and per element on a number or text array). Rules are tried in list order and the first match wins. A badge with no Rule is the fallback when no rule matches; if several have no rule, the first of those is used. Density, Spacing and OverflowMode (Truncate, Wrap or Scroll) apply to the whole column.
BadgeStyle?: BadgeStyle;Property Value
BulletChartStyle
Numeric column. Draws a bullet chart in the cell: the value as a bar, a target as a marker, and optional qualitative bands behind the bar.
CellRanges colours those background bands (poor / ok / good). They are not a colour switch for the bar itself, which is what Percent Bar uses CellRanges for. TargetProperties supplies the target. Orientation is Horizontal (the default) or Vertical; a vertical chart needs a tall row.
BulletChartStyle?: BulletChartStyle;Property Value
ColumnId
colId of the column this style draws.
AdapTable uses the first Styled Column with this ColumnId.
ColumnId: string;Property Value
string
GradientStyle
Numeric column. Tints the cell background by where the value sits in a range.
The cell text stays. Set CellRanges for bands (a traffic-light scale), or ZeroCentred for a diverging colour either side of 0. ColumnComparison measures this cell against another column. RangeValueType is Number (the default) or Percentage (0–100).
GradientStyle?: GradientStyle;Property Value
IconStyle
Scalar column. Looks the cell value up in Mappings (and an optional Preset) and draws the matching icon.
Array columns are not supported; use BadgeStyle to draw one glyph per array element. Preset is Flags, Currencies, Trend or Status. MatchMode is Exact (the default) or CaseInsensitive. When nothing matches, FallbackProperties.Mode is Hide (the default), ShowText or Icon.
IconStyle?: IconStyle;Property Value
Name
Name shown in the Settings Panel and used by styledColumnApi to find this definition.
Unique among Styled Columns.
Name: string;Property Value
string
PercentBarStyle
Numeric column. Draws a bar whose length is the cell value on the column's scale.
CellRanges colours the bar by which band the value falls in. Origin is where the bar grows from: Auto (the default), Zero, Min, or a fixed number. ColumnComparison measures the cell against another column.
PercentBarStyle?: PercentBarStyle;Property Value
RangeBarStyle
Numeric column. Draws a track from Min to Max and a marker at the cell value.
Min and Max are required. Each can be a number, another column's colId (that row's value), or Col-Min, Col-Max, Col-Avg or Col-Median across the visible rows. Reference is an optional second marker (a target or a previous close). CellRanges draws background bands on the track.
RangeBarStyle?: RangeBarStyle;Property Value
RatingStyle
Numeric column. Draws a row of icons (stars by default) filled in proportion to the cell value.
Max is both the number of icons and the top of the scale, in the same units as the cell value. The default is 5, so a value of 4 fills four of five stars. The value is clamped to [0, Max]. AllowHalf (the default) fills the boundary icon by the fraction; otherwise the value rounds to a whole icon. Icon is Star, Heart, Circle or Thumb.
RatingStyle?: RatingStyle;Property Value
RowScope
Which row kinds draw the style: data (leaf) rows, group rows, summary rows and grand-total rows.
Each Exclude* flag turns that kind off. When RowScope is omitted, Badge draws on every row kind and every other style draws on every kind except group rows.
Sparkline ignores this for non-data rows: it only draws on leaf rows, because the cell value has to be the array of points.
RowScope?: RowScope;Property Value
SparklineStyle
Numeric-array column. The cell value is the series, and AG Grid's sparkline renderer draws it.
options is an AG Charts sparkline options object (type: 'line', 'bar', 'area' or 'column'). Only leaf data rows are drawn.
SparklineStyle?: SparklineStyle;Property Value
IsSuspended
Inherited from SuspendableObject
Suspends (i.e. turns off) an Adaptable Object
IsSuspended?: boolean;Property Value
boolean
IsReadOnly
Inherited from AdaptableObject
Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
IsReadOnly?: boolean;Property Value
boolean