mwg API
    Preparing search index...

    Interface TableColumn<T>

    interface TableColumn<T> {
        align?: "left" | "right" | "center";
        compare?: (a: T, b: T) => number;
        key: string;
        label?: string;
        width?: number;
    }

    Type Parameters

    • T
    Index
    align?: "left" | "right" | "center"
    compare?: (a: T, b: T) => number

    how to sort this column; row[key] compared generically when omitted

    key: string

    the key a sort reads when the column has no compare

    label?: string

    the header caption; a game may still draw its own

    width?: number