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

    Interface RowDragOptions<TRow>

    행 끌어 놓기(1.4.0).

    interface RowDragOptions<TRow = unknown> {
        accept?: string[];
        canDrag?: (row: TRow, key: RowKey) => boolean;
        canDrop?: (ctx: RowDropContext) => boolean;
        dropAsChild?: boolean;
        group?: string;
        handle?: boolean;
        label?: string | ((ctx: { keys: RowKey[]; rows: TRow[] }) => string);
        mode?: "move" | "copy";
        multiple?: boolean;
    }

    Type Parameters

    • TRow = unknown
    Index
    accept?: string[]

    이 그룹 id의 그리드에서 온 행을 받는다.

    canDrag?: (row: TRow, key: RowKey) => boolean
    canDrop?: (ctx: RowDropContext) => boolean
    dropAsChild?: boolean

    트리에서 행 가운데에 놓으면 자식으로 넣는다.

    group?: string

    이 그리드의 그룹 id.

    handle?: boolean

    끌기 손잡이 컬럼(extraColumns: ['handle'])을 쓴다. 기본 true.

    label?: string | ((ctx: { keys: RowKey[]; rows: TRow[] }) => string)
    mode?: "move" | "copy"

    다른 그리드에서 온 행을 'move'(원본 삭제) 또는 'copy'로 받는다. 기본 'move'.

    multiple?: boolean

    선택된 행을 끌면 선택 행 전부를 옮긴다. 기본 true.