pDraggable and pDroppable directives apply drag-drop behaviors to any element.
import { DragDropModule } from 'primeng/dragdrop';pDraggable and pDroppable are attached to a target element to add drag-drop behavior. The value of a Directive attribute is required and it defines the scope to match draggables with droppables. Droppable scope can also be an array to accept multiple droppables.
Drop Zone
Drag and Drop to Table
| ID | Category | Name | Price |
|---|
When a suitable draggable enters a droppable area, the area gets p-draggable-enter class that can be used to style the droppable section.
Drop Zone
dragHandle is used to restrict dragging unless mousedown occurs on the specified element. Panel below can only be dragged using its header.