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

    Interface GridDropEvent<T>

    그리드↔그리드 행 이동 이벤트.

    Grid-to-grid row move event.

    グリッド↔グリッドの行移動イベント。

    crossGrid:true 인 두 그리드 사이에서 행을 드래그·드롭할 때 3단계로 발생한다.

    Fires in three phases when rows are dragged between two grids with crossGrid:true.

    crossGrid:true の二つのグリッドの間で行をドラッグ・ドロップするとき、3段階で発生する。

    • onGridDropBefore : 변경 직전(이동 전). false 반환 시 이동 취소. / just before the move; return false to cancel. / 変更直前(移動前)。false を返すと移動を取り消し。
    • onGridDropAfter : 양쪽 데이터 모델 이동 완료 후. / after both data models have moved. / 両側のデータモデルの移動が完了した後。
    • onGridDropComplete: 양쪽 재렌더까지 끝난 후. / after both grids finished re-rendering. / 両側の再レンダーまで終わった後。

    表格↔表格的行移动事件。

    在 crossGrid:true 的两个表格之间拖放行时,分三个阶段触发。

    • onGridDropBefore : 移动之前。返回 false 则取消移动。
    • onGridDropAfter : 两侧数据模型移动完成之后。
    • onGridDropComplete: 两侧重新渲染也结束之后。
    interface GridDropEvent<T = any> {
        cancel?: boolean;
        rows: T[];
        sourceGrid: OpenGridInstance<T>;
        sourceIndexes: number[];
        targetGrid: OpenGridInstance<T>;
        targetIndex: number;
    }

    Type Parameters

    • T = any
    Index

    Properties

    cancel?: boolean

    before 단계에서 true 로 바꾸면 이동 취소 (onGridDropBefore가 false 반환한 것과 동일)

    Set true in the before phase to cancel (same as returning false from onGridDropBefore)

    before 段階で true にすると移動を取り消し(onGridDropBefore が false を返したのと同じ)

    在 before 阶段改为 true 则取消移动(与 onGridDropBefore 返回 false 相同)

    rows: T[]

    이동된 행 데이터 (내부 id 제외 복사본)

    Moved row data (copies without internal ids)

    移動した行データ(内部idを除いたコピー)

    移动的行数据(不含内部 id 的副本)

    sourceGrid: OpenGridInstance<T>

    행을 보낸(드래그 시작) 그리드

    Grid the rows were dragged from

    行を送り出した(ドラッグを開始した)グリッド

    送出行的(发起拖动的)表格

    sourceIndexes: number[]

    소스 그리드에서의 원래 행 인덱스들

    Original row indexes in the source grid

    ソースグリッドでの元の行インデックス

    在来源表格中原本的行索引

    targetGrid: OpenGridInstance<T>

    행을 받은(드롭 대상) 그리드

    Grid the rows were dropped onto

    行を受け取った(ドロップ先の)グリッド

    接收行的(放置目标)表格

    targetIndex: number

    타깃 그리드에서 삽입된 시작 인덱스

    Insertion start index in the target grid

    ターゲットグリッドで挿入された開始インデックス

    在目标表格中插入的起始索引