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

    Interface GroupTreeNode<T>

    A single node in the group tree (nested group) A leaf (no subGroup) has a body to draw as an AutoTable segment; a non-leaf has children to recurse into — both kinds have their own foot (subtotal) if a column has an aggregate.

    interface GroupTreeNode<T> {
        body: string[][] | undefined;
        children: GroupTreeNode<T>[] | undefined;
        depth: number;
        foot: string[] | undefined;
        label: string;
        minRowsWithHeader: number;
        rows: readonly T[];
    }

    Type Parameters

    • T
    Index
    body: string[][] | undefined

    the segment's cell strings — leaf only (a non-leaf draws through children instead)

    children: GroupTreeNode<T>[] | undefined

    present when this level's resolver declares a subGroup (non-leaf)

    depth: number

    0 = the outermost level — used to indent the band label per level

    foot: string[] | undefined

    this group's subtotal — undefined when no column declares an aggregate

    label: string
    minRowsWithHeader: number

    this level's resolver's keepTogether (default 1)

    rows: readonly T[]

    every row in this group (including sub-groups) — the basis for this level's subtotal