Constants
The shadow item marker, the shadow item id and the id of the dragged element.
How it works explains the shadow item, and the styling guide uses all three.
SHADOW_ITEM_MARKER_PROPERTY_NAME
The property set to true on the shadow item: the placeholder that stands in the items for the dragged item during a
pointer drag. Check it in the #each block to style the placeholder.
const SHADOW_ITEM_MARKER_PROPERTY_NAME: "isDndShadowItem" SHADOW_PLACEHOLDER_ITEM_ID
The id of the shadow item when a pointer drag starts. Once the zone no longer renders the original item, usually a
frame later, the shadow item takes the dragged item's id for the rest of the drag. To find the shadow item, check
SHADOW_ITEM_MARKER_PROPERTY_NAME instead of this id.
const SHADOW_PLACEHOLDER_ITEM_ID: "id:dnd-shadow-placeholder-0000" The shadow item starts with this id, and takes the dragged item’s own id once the dragged element has left the list. To recognise the shadow item, check SHADOW_ITEM_MARKER_PROPERTY_NAME instead.
DRAGGED_ELEMENT_ID
The id of the element that follows the pointer during a pointer drag, for styling it or finding it in tests.
const DRAGGED_ELEMENT_ID: "dnd-action-dragged-el"