Skip to main content
Version: Next

ClassTableColumnConfig

Properties

chartOptions?

optional chartOptions: Partial<HorizontalStackedBarProps>;

override options for metricChart column type


colStyle?

optional colStyle: CSSProperties;

additional style properties for column


columnLabel?

optional columnLabel: string;

column header label


metricId?

optional metricId: string;

metricId to use for column - metricGoal will access its values via the metricGroup


percentFormatterOptions?

optional percentFormatterOptions: PercentEdgeOptions;

config options for percent value formatting. see percentWithEdge function for more details


targetValueFormatter?

optional targetValueFormatter: TargetFormatter;

formatting of target value based on the location of the row in the table


type

type: 
| "class"
| "metricValue"
| "metricChart"
| "metricGoal"
| "layerToggle";

column display type


valueFormatter?

optional valueFormatter: ValueFormatter;

formatting to apply to values in column row, defaults to as-is 'value' formatting.


valueLabel?

optional valueLabel: string | (value) => string;

unit string to display after value, or a format function that is passed the row value


width?

optional width: number;

column percent width out of 100