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

    Interface GridRowPanelHooks

    행 편집 패널 훅(1.6.0). false를 돌려주면 취소한다.

    interface GridRowPanelHooks {
        beforeRowPanelClose?: (
            ctx: {
                dirty: boolean;
                reason: "api" | "cancel" | "switch";
                rowKey: RowKey;
            },
        ) => boolean
        | void;
        beforeRowPanelOpen?: (
            ctx: { previousKey: RowKey | null; rowKey: RowKey },
        ) => boolean | void;
        beforeRowPanelSave?: (
            ctx: { changes: RowPanelChanges; rowKey: RowKey },
        ) => boolean | void;
    }

    Hierarchy (View Summary)

    Index
    beforeRowPanelClose?: (
        ctx: {
            dirty: boolean;
            reason: "api" | "cancel" | "switch";
            rowKey: RowKey;
        },
    ) => boolean
    | void

    고친 값이 있을 때만 불린다(discard: true로 닫으면 부르지 않는다).

    beforeRowPanelOpen?: (
        ctx: { previousKey: RowKey | null; rowKey: RowKey },
    ) => boolean | void
    beforeRowPanelSave?: (
        ctx: { changes: RowPanelChanges; rowKey: RowKey },
    ) => boolean | void