[Go to site: main page, start]

Interface DragDropConfiguration

interface DragDropConfiguration {
    callbacks?: Record<
        | "dragstart"
        | "drop"
        | "dragover"
        | "dragenter"
        | "dragleave"
        | "dragend",
        (event: DragEvent) => void,
    >;
    dragSelector?: string | null;
    dropSelector?: string | null;
    permissions?: Record<"dragstart" | "drop", (selector: string) => boolean>;
}
Index

Properties

callbacks?: Record<
    | "dragstart"
    | "drop"
    | "dragover"
    | "dragenter"
    | "dragleave"
    | "dragend",
    (event: DragEvent) => void,
>

Callback functions for each action

dragSelector?: string | null

The CSS selector used to target draggable elements.

dropSelector?: string | null

The CSS selector used to target viable drop targets.

permissions?: Record<"dragstart" | "drop", (selector: string) => boolean>

Permission tests for each action