@paperbits/common
Version:
Paperbits common components.
12 lines (11 loc) • 409 B
text/typescript
export interface DragSourceConfig {
sourceData: any;
/**
* Tells dragged element to go either to new place or get back to origin.
*/
sticky: boolean;
ondragstart?: (sourceData: any, dragged: HTMLElement) => HTMLElement;
ondragend?: (sourceData: any, dragged: HTMLElement) => void;
preventDragging?: (candidate: HTMLElement) => boolean;
inertia?: boolean;
}