tubular-common
Version:
Tubular Common Models and Data Transformer
25 lines (24 loc) • 838 B
TypeScript
import type { AggregateFunctions, ColumnDataType, ColumnSortDirection, CompareOperators } from './Column';
export interface ColumnModel {
aggregate: AggregateFunctions;
dataType: ColumnDataType;
dateOriginFormat?: string;
dateDisplayFormat?: string;
dateTimeOriginFormat?: string;
dateTimeDisplayFormat?: string;
filterArgument: string[] | number[] | undefined;
filterOperator: CompareOperators | undefined;
filterText: string | undefined;
filterable: boolean;
exportable: boolean;
isKey: boolean;
label: string;
isComputed: boolean;
getComputedStringValue?: (column: ColumnModel, row: unknown, isHeader: boolean) => string;
name: string;
searchable: boolean;
sortDirection: ColumnSortDirection;
sortOrder: number;
sortable: boolean;
visible: boolean;
}