Quartz Headless docs/DragDropService

Search documentation

Type to search the documentation.

API: Core

DragDropService

Service reference for DragDropService.

Overview

Properties

Name Type Description
readonly isDragging Signal<boolean>
readonly dragData Signal<unknown>
readonly sourceElement Signal<HTMLElement | null>
readonly dragType Signal<string | null>

Public methods

startDrag

startDrag(data: unknown, sourceElement: HTMLElement, dragType?: string): void
Parameter Type Optional Description
data unknown
sourceElement HTMLElement
dragType string Yes

endDrag

endDrag(_dropped: boolean): void
Parameter Type Optional Description
_dropped boolean

getDragData

getDragData<T>(): T | null