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

    Interface EditEvent<T>

    셀 값 편집의 흐름(편집 시작 → 커밋 직전 → 편집 끝) 각 지점에서 핸들러로 오는 정보입니다. 편집 전 값(oldValue)과 편집 후 값(newValue)을 함께 주므로, 값이 실제로 바뀌었는지 비교하거나 커밋 직전 훅에서 검증 후 되돌릴 수 있습니다.

    Delivered at each point in a cell edit (start → just-before-commit → end). It carries both the value before (oldValue) and after (newValue) so you can compare, or validate and veto the commit.

    セル値の編集の流れ(編集開始 → コミット直前 → 編集終了)の各地点でハンドラーに届く情報です。 編集前の値(oldValue)と編集後の値(newValue)を一緒に渡すので、値が実際に変わったかを比較したり、 コミット直前のフックで検証してから元に戻したりできます。

    관련 옵션: onEditStart, onEditBefore, onEditEnd

    Related options: onEditStart, onEditBefore, onEditEnd

    関連オプション: onEditStart, onEditBefore, onEditEnd

    在单元格编辑的各个节点(编辑开始 → 提交之前 → 编辑结束)送到处理函数的信息。它同时带上编辑前的值 (oldValue)和编辑后的值(newValue),因此可以比较值是否真的变了,也可以在提交前的钩子里校验并撤回。

    相关选项: onEditStart, onEditBefore, onEditEnd

    interface EditEvent<T = any> {
        cancel?: boolean;
        column: ColumnDef<T>;
        columnIndex: number;
        field: string;
        newValue: any;
        oldValue: any;
        row: T;
        rowIndex: number;
        type: string;
    }

    Type Parameters

    • T = any

      행 데이터 타입

      Row data type

      行データの型

      行数据的类型

    Index

    Properties

    cancel?: boolean

    편집 커밋 직전(onEditBefore)에 true 로 바꾸면 그 편집을 무효화합니다.

    In the pre-commit hook (onEditBefore), set true to reject the edit.

    編集コミット直前(onEditBefore)で true にすると、その編集を無効にします。

    在提交编辑之前(onEditBefore)改为 true,即可作废这次编辑。

    column: ColumnDef<T>

    편집 중인 컬럼의 정의.

    The column's definition.

    編集中の列の定義。

    正在编辑的列的定义。

    columnIndex: number

    편집 중인 컬럼의 인덱스.

    Index of the column being edited.

    編集中の列のインデックス。

    正在编辑的列的索引。

    field: string

    편집 중인 컬럼의 field 이름.

    field name of the column being edited.

    編集中の列の field 名。

    正在编辑的列的 field 名。

    newValue: any

    편집 후 들어온 값.

    Value after the edit.

    編集後に入ってきた値。

    编辑后传入的值。

    oldValue: any

    편집 전 값.

    Value before the edit.

    編集前の値。

    编辑前的值。

    row: T

    편집 중인 행의 데이터 객체.

    The row-data object being edited.

    編集中の行のデータオブジェクト。

    正在编辑的行的数据对象。

    rowIndex: number

    편집 중인 행의 화면 표시 순서 인덱스.

    Screen-order index of the row being edited.

    編集中の行の画面表示順のインデックス。

    正在编辑的行按屏幕显示顺序的索引。

    type: string

    이벤트 이름('editStart'/'editEnd'/'editBefore').

    The event name.

    イベント名('editStart'/'editEnd'/'editBefore')。

    事件名('editStart'/'editEnd'/'editBefore')。