맥스그리드 API 레퍼런스
    Preparing search index...

    Interface SummaryRowDef

    요약 줄 하나.

    interface SummaryRowDef {
        aggregate?: Readonly<Record<string, ColumnAggregate>>;
        cells?: {
            aggregate?: ColumnAggregate;
            class?: string;
            column: string;
            from?: string;
            span?: number;
            text?: string | ((ctx: AggregateContext) => string);
        }[];
        id: string;
        label?: string;
    }
    Index
    aggregate?: Readonly<Record<string, ColumnAggregate>>

    컬럼 id → 이 줄에서 계산할 집계. 있으면 여기 적은 컬럼만 계산하고 나머지는 빈 칸이다. 없으면 컬럼 정의의 aggregate를 그대로 쓴다. 없는 컬럼 id는 무시한다.

    cells?: {
        aggregate?: ColumnAggregate;
        class?: string;
        column: string;
        from?: string;
        span?: number;
        text?: string | ((ctx: AggregateContext) => string);
    }[]

    이 줄의 칸을 직접 정한다. 있으면 aggregate 맵을 대신한다.

    Type Declaration

    • Optionalaggregate?: ColumnAggregate
    • Optionalclass?: string
    • column: string
    • Optionalfrom?: string
    • Optionalspan?: number

      합칠 컬럼 수(1~).

    • Optionaltext?: string | ((ctx: AggregateContext) => string)
    id: string

    줄을 구분하는 이름(비어 있지 않은 문자열, 줄마다 달라야 한다). SummaryDisplayRow.rowId로 돌아온다.

    label?: string

    이 줄 첫 컬럼의 문구. 없으면 summary.label, 그것도 없으면 로케일별 기본값.