1.0.4 • Published 7 months ago
@apwize/react-reorderable v1.0.4
react-reorderable
Wrap your custom components to add drag to reorder capabilities
Demo: https://malexandrum.github.io/react-reorderable/
Props
acceptedTypes: string[]
- list of types that this item accepts to be dragged overdisableAnimation?: boolean
ghostOpacity?: number
- opacity for preview of item being draggedhandleClass?: string
- class of element in your custom component that will be used as a drag handle. If not specified, your component will be draggable from any pointonDrop: (targetType: string, sourceType: string, targetId: string, sourceId: string, isBefore: boolean) => void
- your handler will be called when element has been successfully dropped on a target that accepts source