kapom-report - v0.1.2
    Preparing search index...

    Interface RunningTotalColumn<T>

    interface RunningTotalColumn<T> {
        align?: HAlign;
        cellStyle?: Partial<CellStyle>;
        conditionalStyle?: (row: T) => Partial<CellStyle> | undefined;
        formatter?: (accumulated: Decimalish) => string;
        header: string;
        headerAlign?: HAlign;
        headerStyle?: Partial<CellStyle>;
        mode?: "continuous" | "per-group";
        numberFormat?: NumberFormat;
        type: "runningTotal";
        valueOf: (row: T) => Decimalish;
        visible?: boolean | (() => boolean);
        width?: number;
    }

    Type Parameters

    • T

    Hierarchy

    • TypedColumnBase<T>
      • RunningTotalColumn
    Index
    align?: HAlign

    data cell alignment; default 'left'

    cellStyle?: Partial<CellStyle>

    static style for this column's body cells — incl. fillColor for a column background

    conditionalStyle?: (row: T) => Partial<CellStyle> | undefined

    value-driven counterpart of cellStyle — returns a Partial<CellStyle> for THIS column's body cell based on the row (e.g. a red fillColor when the value is negative), or undefined to leave it to cellStyle. Mirrors the table-level style.conditional (row) at the column scope, and is applied as the most specific layer (on top of style.conditional/style.zebra).

    formatter?: (accumulated: Decimalish) => string
    header: string
    headerAlign?: HAlign

    header cell alignment; default = the align value

    headerStyle?: Partial<CellStyle>

    static style for this column's head cell (all table/column style is CellStyle)

    mode?: "continuous" | "per-group"
    numberFormat?: NumberFormat
    type: "runningTotal"
    valueOf: (row: T) => Decimalish

    Returns the primitive value of the specified object.

    visible?: boolean | (() => boolean)

    conditionally show/hide; default true

    width?: number