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