dragAndDrop
Drag an item to a destination element.
Usage
$(selector).dragAndDrop({ options, duration })
Parameters
| Name | Type | Details |
|---|---|---|
| target | Element, DragAndDropCoordinate | destination selector |
| options optional | DragAndDropOptions | dragAndDrop command options |
| options.duration optional | Number | how long the drag should take place |
Example
it('should demonstrate the dragAndDrop command', () => {
const elem = $('#someElem')
const target = $('#someTarget')
elem.dragAndDrop(target)
})