OPEN_GRID API - v1.3.1
    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. 관련 옵션 / Related options: 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.

    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.

    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.