API: Core
DropZoneConfig
Interface reference for DropZoneConfig.
Overview
- Kind: Interface
- Source: packages/core/src/drag-drop/drag-drop.types.ts:10
Declaration
interface DropZoneConfig
Properties
| Name | Type | Description |
|---|---|---|
accept? |
string[] |
Acceptable drag types |
disabled? |
boolean |
Whether drop is disabled |
sortable? |
boolean |
Whether to allow sorting/reordering |
orientation? |
'horizontal' | 'vertical' |
Explicit layout axis for before/after drop-position and sortable-index calculation. When unset, falls back to measuring getBoundingClientRect().width > height โ a heuristic that can misjudge square-ish zones, short vertical lists in wide containers, or wrapping layouts. Set this explicitly whenever the dropzone's aspect ratio doesn't reliably reflect its scroll/item axis. |