blessed-components - v1.20.0
    Preparing search index...

    Interface TableColumn<TRow>

    Column definition consumed by renderTable.

    interface TableColumn<TRow extends TableRow = TableRow> {
        align?: TableColumnAlign;
        accessor?: (row: TRow) => string | number;
        header: string;
        id: string;
        width?: number | "auto";
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    Cell alignment.

    accessor?: (row: TRow) => string | number

    Returns the display value for this column. Defaults to row[id].

    header: string

    Header text displayed above body rows.

    id: string

    Stable column identifier.

    width?: number | "auto"

    Preferred width in terminal cells.

    Numeric widths are fixed. auto shares remaining space with other auto columns.

    'auto'