LmnDropAreaRef
Generic types: | DRAGGABLE_DATA DROP_AREA_DATA |
A drop area ref.
Presentation
type LmnDropAreaRef = {
/** The id of the drop area. */
id: string;
/** Data passed through all the drop area events. */
data?: DROP_AREA_DATA;
/** The DOM element of the drop area. */
element: HTMLElement;
/** The drop area doesn’t accept any draggable if disabled. */
disabled?: boolean;
/** Callback to trigger drag end event on drop area. */
dragEnd: (event: LmnDragEndEvent <DRAGGABLE_DATA, DROP_AREA_DATA>) => void;
};