Interface ColumnDefine<T>

interface ColumnDefine<T> {
    action?: null | ColumnActionOption | BaseAction<T>;
    caption?: string | (() => string);
    columnType?: null | ColumnTypeOption | BaseColumn<T>;
    field?: FieldDef<T>;
    headerAction?: null | HeaderActionOption | BaseAction<T>;
    headerField?: string;
    headerIcon?: ColumnIconOption<never> | ColumnIconOption<never>[];
    headerStyle?: null | HeaderStyleOption | BaseStyle;
    headerType?: null | HeaderTypeOption | BaseHeader<T>;
    icon?: ColumnIconOption<T> | ColumnIconOption<T>[];
    maxWidth?: string | number;
    message?:
        | Message
        | keyof T
        | ((record: T) => Message | null)
        | (Message | keyof T | ((record: T) => Message | null))[];
    minWidth?: string | number;
    sort?: OldSortOption<T>;
    style?: null | ColumnStyleOption;
    width?: string | number;
}

Type Parameters

  • T

Hierarchy

  • BaseHeaderDefine<T>
    • ColumnDefine

Properties

action?: null | ColumnActionOption | BaseAction<T>
caption?: string | (() => string)
columnType?: null | ColumnTypeOption | BaseColumn<T>
field?: FieldDef<T>
headerAction?: null | HeaderActionOption | BaseAction<T>
headerField?: string
headerIcon?: ColumnIconOption<never> | ColumnIconOption<never>[]
headerStyle?: null | HeaderStyleOption | BaseStyle
headerType?: null | HeaderTypeOption | BaseHeader<T>
maxWidth?: string | number
message?:
    | Message
    | keyof T
    | ((record: T) => Message | null)
    | (Message | keyof T | ((record: T) => Message | null))[]
minWidth?: string | number
sort?: OldSortOption<T>
style?: null | ColumnStyleOption
width?: string | number