OPEN_GRID API - v1.5.2
    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.

    グループごとに小計/合計の行を自動で挿入する設定です。groupBy でまとめた各グループの指定フィールドを、 合計・平均などで集計し、グループの上または下に要約行として見せます。

    按分组自动插入小计/合计行的设置。对 groupBy 分出的每个组的指定字段做合计、平均等聚合, 并作为汇总行显示在组的上方或下方。

    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.

    集計する列の field の一覧。

    需要聚合的列的 field 列表。

    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.

    要約行をグループの上('top')に置くか、下('bottom')に置くか。

    汇总行放在组的上方('top')还是下方('bottom')。

    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.

    一つのグループに要約行を複数作るとき(例: 合計の行 + 平均の行)。customFn で自前の集計もできます。

    在一个组内生成多行汇总时(例如合计行 + 平均行)。也可用 customFn 自行聚合。