Closed vtarelkin closed 2 months ago
this library definitely need some customizing on dragged item.
something like
beforeDrag?: (params: BeforeDragParams) => void;
export interface BeforeDragParams {
elements: Element[];
oldIndex: number;
plannedIndex: number;
}
There is no support for this.
@tajo hi and thank you for your library! I wonder are there any options in onChange handler to forbid to move certain item to certain position (for example at the start of the list) ? Cannot get the value of the dragged element.