SpecialColumnSettings

View as Markdown

Column behaviour for a Calculated Column or a Free Text Column.

DataType is required and is the type AdapTable uses for filters and expressions. Filterable, Resizable, Groupable, Sortable, Pivotable and Aggregatable each default to false. SuppressMenu and SuppressMovable default to false, so the header menu is shown and the column can be dragged.

TypeScript
export interface

Properties

PropertyTypeDescriptionDefault
AggregatablebooleanWhether Column can be used in an aggregation when groupingfalse
CellDataTypestringOptional AG Grid cellDataType when it differs from DataType
(e.g. app-registered currency / percentage from dataTypeDefinitions).
When unset, the ColDef uses DataType.
ColumnTypesstring[]Custom column types added to AG Grid Column Types when object is created
DataTypeAdaptableColumnDataTypeExpression's / column value DataType used by AdapTable (AQL, filters, etc.).
Only mandatory property.
FilterablebooleanWhether Column is filterablefalse
GroupablebooleanWhether Column can be groupedfalse
HeaderToolTipstringTooltip to show in the Column Header (not cells)
PivotablebooleanWhether Column can be used when grid is in pivot modefalse
ResizablebooleanWhether Column can be resized (by dragging column header edges)false
SortablebooleanWhether Column is sortablefalse
SuppressMenubooleanWhether if no menu should be shown for this Column header.false
SuppressMovablebooleanWhether if this Column should be movable via draggingfalse
WidthnumberPreferred (pixel) Column Width; if unset, calculated dynamically by AG Grid

Property Details

Aggregatable

Whether Column can be used in an aggregation when grouping

TypeScript
Aggregatable?: boolean;
Default Value

false

Property Value

boolean

CellDataType

Optional AG Grid cellDataType when it differs from DataType (e.g. app-registered currency / percentage from dataTypeDefinitions). When unset, the ColDef uses DataType.

TypeScript
CellDataType?: string;
Property Value

string

ColumnTypes

Custom column types added to AG Grid Column Types when object is created

TypeScript
ColumnTypes?: string[];
Property Value

string[]

DataType

Expression's / column value DataType used by AdapTable (AQL, filters, etc.). Only mandatory property.

TypeScript
DataType: AdaptableColumnDataType;
Property Value

AdaptableColumnDataType

Filterable

Whether Column is filterable

TypeScript
Filterable?: boolean;
Default Value

false

Property Value

boolean

Groupable

Whether Column can be grouped

TypeScript
Groupable?: boolean;
Default Value

false

Property Value

boolean

HeaderToolTip

Tooltip to show in the Column Header (not cells)

TypeScript
HeaderToolTip?: string;
Property Value

string

Pivotable

Whether Column can be used when grid is in pivot mode

TypeScript
Pivotable?: boolean;
Default Value

false

Property Value

boolean

Resizable

Whether Column can be resized (by dragging column header edges)

TypeScript
Resizable?: boolean;
Default Value

false

Property Value

boolean

Sortable

Whether Column is sortable

TypeScript
Sortable?: boolean;
Default Value

false

Property Value

boolean

SuppressMenu

Whether if no menu should be shown for this Column header.

TypeScript
SuppressMenu?: boolean;
Default Value

false

Property Value

boolean

SuppressMovable

Whether if this Column should be movable via dragging

TypeScript
SuppressMovable?: boolean;
Default Value

false

Property Value

boolean

Width

Preferred (pixel) Column Width; if unset, calculated dynamically by AG Grid

TypeScript
Width?: number;
Property Value

number