Interface Column

A table column.

interface Column {
    align?: ColumnAlign;
    dataSetFields: readonly string[];
    formatterId: string;
    formatterOptions?: Record<string, any>;
    name: string;
    renderType?: "text" | "mail" | "link";
    sortFormattedValue?: "string" | "string-with-number";
    sortable: boolean;
    title: string;
}

Properties

align?: ColumnAlign

Column alignment

dataSetFields: readonly string[]

Referenced data set fields.

formatterId: string

Id of a formatter.

formatterOptions?: Record<string, any>

Options for the formatter identified by formatterId;

name: string

Name of the column.

renderType?: "text" | "mail" | "link"

Column special names for UI rendering

sortFormattedValue?: "string" | "string-with-number"

Specifies if this column should be sorted by its original value or by its formatted display value. The following values are allowed:

  • undefined (default): The column is sorted by its original value.
  • string: The column is sorted by its formatted display value as a string.
  • string-with-number: The column is sorted by its formatted display value, whereby numeric parts are sorted as numbers. Example: "a1" < "a2" < "a10".
sortable: boolean

Specifies if this column is sortable.

title: string

Title of the column.

Generated using TypeDoc