Skip to content

RevoGrid Documentation v4.21.8 / ColumnType

Interface: ColumnType<TModel>

Interface for regular column definition. Regular column can be any column that is not a grouping column.

Extends

Extended by

Type Parameters

Type ParameterDefault type
TModel extends DataTypeDataType

Properties

PropertyTypeDescriptionInherited fromDefined in
cellCompare?CellCompareFunc<TModel>Represents the cell compare function for custom sorting.-src/types/interfaces.ts:204
cellParser?(model: TModel, column: ColumnRegular<ColumnProp, TModel>) => anyRepresents the cell value parse function for custom parsing. Currently only used for filtering.-src/types/interfaces.ts:210
cellProperties?PropertiesFunc<TModel>Represents cell properties for custom styling, classes, and events.-src/types/interfaces.ts:196
cellTemplate?CellTemplate<TModel>Represents the cell template for custom rendering.-src/types/interfaces.ts:200
columnProperties?ColPropertiesFuncHeader Cell properties Custom function/component to render header propertiesColumnProperties.columnPropertiessrc/types/interfaces.ts:139
columnTemplate?ColumnTemplateFuncHeader inner template Function/component to render custom header contentColumnProperties.columnTemplatesrc/types/interfaces.ts:134
editor?string | EditorCtrRepresents a custom editor defined in editors property. Can be a string or an editor constructor function.-src/types/interfaces.ts:192
maxSize?numberRepresents the maximum column size.-src/types/interfaces.ts:187
minSize?numberRepresents the minimal column size. This property cannot be less than cell padding in order to keep performance on top and minimize DOM elements number.-src/types/interfaces.ts:183
readonly?ReadOnlyFormat<TModel, ColumnRegular<ColumnProp, DataType<any, ColumnProp>>>Represents whether the column or cell is read-only. Can be a boolean or a function that returns a boolean. The function receives column data as a parameter.-src/types/interfaces.ts:173
size?numberRepresents the default column size.-src/types/interfaces.ts:177