OPEN_GRID API - v1.3.1
    Preparing search index...

    Interface SummaryOptions

    그룹마다 소계/합계 행을 자동으로 끼워 넣는 설정입니다. groupBy 로 묶은 각 그룹의 지정 필드를 합·평균 등으로 집계해 그룹 위나 아래에 요약 행으로 보여 줍니다. / Auto-inserts a subtotal/summary row per group. For each group made by groupBy it aggregates the chosen fields (sum, average …) and shows the result as a summary row above or below the group.

    interface SummaryOptions {
        fields: string[];
        ops?: SummaryOp | SummaryOp[];
        position?: "top" | "bottom";
        rows?: {
            customFn?: (items: any[]) => number;
            label?: string;
            op: SummaryOp;
        }[];
    }
    Index

    Properties

    fields: string[]

    집계할 컬럼들의 field 목록. / field names of the columns to aggregate.

    ops?: SummaryOp | SummaryOp[]

    어떤 집계를 적용할지(하나 또는 여러 개). 생략 시 기본 동작. / Which aggregate(s) to apply (one or several).

    position?: "top" | "bottom"

    요약 행을 그룹 위('top')에 둘지 아래('bottom')에 둘지. / Put the summary row above ('top') or below ('bottom') the group.

    rows?: { customFn?: (items: any[]) => number; label?: string; op: SummaryOp }[]

    한 그룹에 요약 행을 여러 줄 만들 때(예: 합계 줄 + 평균 줄). customFn 으로 직접 집계도 가능. / Multiple summary rows per group (e.g. a sum row + an average row); customFn allows your own aggregation.