07 July 2017
jQUERY -JqueryUI - DRAG - JqueryUI Draggable
(via)$ (selector, context).draggable (options) Method
The draggable (options) method declares that an HTML element can be moved in the HTML page. The options parameter is an object that specifies the behavior of the elements involved.
Syntax
$(selector, context).draggable(options);
You can provide one or more options at a time using Javascript object. If there are more than one options to be provided then you will separate them using a comma as follows −
$(selector, context).draggable({option1: value1, option2: value2..... });
06 June 2017
jQuery - LIBRARY - DRAG - jQuery.event.move
Move events are designed to compliment drag events, where the two have different meanings: drag events are for transferring data while move events are for making interactive interfaces. That said, movestart, move and moveend events deliberately echo dragstart, drag and dragend events, with one main difference: where the drag event fires continuously whether you have moved the pointer or not, the move event fires only after the pointer has been moved, and only on animation frames.
Where both a dragstart and any move event are bound to the same node, drag events are suppressed.
1
(2 marks)