@true-directive/base
Version:
The set of base classes for the TrueDirective Grid
22 lines (21 loc) • 958 B
TypeScript
/**
* Copyright (c) 2018-2019 Aleksey Melnikov, True Directive Company.
* @link https://truedirective.com/
* @license MIT
*/
/**
* Некоторый набор правил, который разрешает или запрещает
* бросать строки в указанную позицию при drag and drop.
*/
export declare class RowDragOverseer {
/**
* Возвращает позицию, в которую можно бросить относительно таргета
* @param resultRows [description]
* @param draggedRows [description]
* @param dropRow [description]
* @param dropPos [description]
* @param isTree [description]
* @return Если пустая строка - никуда бросить нельзя
*/
canDrop(resultRows: any[], draggedRows: any[], dropRow: any, dropPos: string, isTree?: boolean): string;
}