Skip to content

outlineDrop beta ​

Function of @v12-engine/editor

ts
export declare function outlineDrop(accepts: readonly CollectionId[], onDrop: (target: Named, all: Named[]) => void): {
    'data-outline-drop': string;
    onDragOver: (event: DragEvent) => void;
    onDragLeave: (event: DragEvent) => void;
    onDrop: (event: DragEvent) => void;
};

What makes a row of a field that takes a thing of the map a place to drop one from the Hierarchy: spread on the row, it takes a row dragged from the Hierarchy that has a thing of a kind it accepts (outlined while one is over it, data-dropping) and hands on the first such thing dropped, and all of them. A drag of anything else is not taken