createDragRef
function
Creates a DragRef for an element, turning it into a draggable item.
API
function createDragRef<T = unknown>(
injector: Injector,
element: HTMLElement | ElementRef<HTMLElement>,
config?: DragRefConfig,
): DragRef<T>;@paramelement
HTMLElement | ElementRef<HTMLElement>Element to which to attach the dragging functionality.
@returns
DragRef<T>Jump to details