DataDragLabelCallback

drag 중인 item 의 label 텍스트를 결정하기 위한 콜백의 형식

타입

export type DataDragLabelCallback = (source: GridBase, sourceItems: number[], target: GridBase | HTMLElement, targetItem: number, targetColumn: string) => string;

상세 설명

[매개변수 목록]

source - 드래그한 아이템이 있던 GridBase 컨트롤

sourceItems - 드래그한 그리드의 아이템들의 인덱스

target - 드랍할 GridBase 컨트롤 또는 HTMLElement

targetItem - 드랍할 그리드에서의 아이템 인덱스

targetColumn - 드랍할 그리드에서의 targetColumn

[반환값] - 레이블의 텍스트

예제 코드

gridView.dataDropOptions.labelCallback = function (source, sourceItems, target, targetItem) {
    return sourceItems.length + " 개의 행";
}