middag-react
    Preparing search index...

    Interface DenseTableColumnDef

    interface DenseTableColumnDef {
        entity?: EntityRef;
        href?: string;
        key: string;
        label: string;
        maxWidth?: number;
        minWidth?: number;
        searchable?: boolean;
        sortable?: boolean;
        statusMap?: Record<string, StatusIntent>;
        timestampFormat?: TimestampFormat;
        variant?:
            | "boolean"
            | "link"
            | "text"
            | "badge"
            | "status"
            | "timestamp"
            | "rich_status"
            | "html"
            | "link_group"
            | "annotated"
            | "progress";
    }
    Index
    entity?: EntityRef

    Entity reference for link resolution via PageContract.entities map.

    href?: string

    URL pattern for link columns. Interpolated per row (e.g. "/organizations/{organizationId}").

    key: string
    label: string
    maxWidth?: number

    Cap in pixels. Longer content is clipped to one line with an ellipsis, and the full value stays in the DOM as the cell's title.

    Without a cap a column grows until the widest value fits, so a single long row can push the table past the width of the page. Capping in the column keeps the value intact — selectable, searchable by the browser, readable on hover — where trimming it in the data would not.

    minWidth?: number
    searchable?: boolean
    sortable?: boolean
    statusMap?: Record<string, StatusIntent>

    Status value → semantic intent, for variant: "status" and "badge".

    Those variants resolve their colour by looking the displayed text up in a built-in English map, so a translated label matches nothing and every row renders neutral. Supplying the mapping for the labels this column actually shows is what lets a localized status column keep its colours. Keys are matched case-insensitively.

    timestampFormat?: TimestampFormat

    Display format for variant: "timestamp" columns. Defaults to "relative".

    variant?:
        | "boolean"
        | "link"
        | "text"
        | "badge"
        | "status"
        | "timestamp"
        | "rich_status"
        | "html"
        | "link_group"
        | "annotated"
        | "progress"