modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface TableColumnData

    A <tableColumn> of a table.

    interface TableColumnData {
        calculatedColumnFormula?: string | null;
        dataDxfId?: number | null;
        headerRowDxfId?: number | null;
        id: number;
        name: string;
        totalsRowDxfId?: number | null;
        totalsRowFormula?: string | null;
        totalsRowFunction?: string | null;
        totalsRowLabel?: string | null;
    }
    Index
    calculatedColumnFormula?: string | null
    dataDxfId?: number | null

    Zero-based index into StylesData.dxfs of the data cells' format.

    headerRowDxfId?: number | null

    Zero-based index into StylesData.dxfs of the header cell's format.

    id: number

    Column id, unique within the table.

    name: string

    Column name, the text of its header cell.

    totalsRowDxfId?: number | null

    Zero-based index into StylesData.dxfs of the totals-row cell's format.

    totalsRowFormula?: string | null

    <totalsRowFormula>: the formula of the column's totals-row cell (without a leading =).

    totalsRowFunction?: string | null

    Totals-row function: 'sum', 'min', 'max', 'average', 'count', 'countNums', 'stdDev', 'var', 'custom' (uses totalsRowFormula) or 'none'. Worksheet.addTable writes the matching totals-row cell when it is empty: the SUBTOTAL formula Excel writes for a function (SUBTOTAL(109,Table1[Amount]) for 'sum'), or the totalsRowFormula for 'custom'.

    totalsRowLabel?: string | null

    totalsRowLabel: the text of the column's totals-row cell. Worksheet.addTable writes it into the cell when the column has no function and the cell is empty.