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