sortable.js revision c651fd5bce1f51c1216b07d8f62327a980804cf3
0N/A * The class allows you to create a Drag & Drop reordered list. 0N/A * The class allows you to create a Drag & Drop reordered list. * @description A reference to the DD.Delegate instance. var id =
'sortable-' + Y.
guid(), c,
* @param Event e The Event Object * @description Handles the DropOver event to append a drop node to an empty target * @param Event e The Event Object * @description Handles the DragOver event that moves the object in the list or to another list. Y.
log(
'No delegate parent found',
'error');
if (
this.
get(
'moveType') ==
'copy') {
* @param Event e The Event Object * @description Handles the DragStart event and initializes some settings. * @param Event e The Event Object * @description Handles the DragEnd event that cleans up the settings in the drag:start event. * @param Class cls The class to plug * @param Object config The class config * @description Passthrough to the DD.Delegate.ddplug method * @description Passthrough to the DD.Delegate syncTargets method. * @param Sortable sel The sortable list to join with * @param String type The type of join to do: full, inner, outer, none. Default: full * @description Join this Sortable with another Sortable instance. * <li>full: Exchange nodes with both lists.</li> * <li>inner: Items can go into this list from the joined list.</li> * <li>outer: Items can go out of the joined list into this list.</li> * <li>none: Removes the join.</li> Y.
error(
'Sortable: join needs a Sortable Instance');
* @param Sortable sel The Sortable to remove the join from * @description Removes the join with the passed Sortable. * @param Sortable sel The sortable list to join with * @description Joins both of the Sortables together. * @param Sortable sel The sortable list to join with * @description Allows this Sortable to accept items from the passed Sortable. * @param Sortable sel The sortable list to join with * @description Allows this Sortable to give items to the passed Sortable. * @description A selector query to get the container to listen for mousedown events on. All "nodes" should be a child of this container. * @description A selector query to get the children of the "container" to make draggable elements from. * @description The ocpacity to test the proxy item to when dragging. * @description The node to set opacity on when dragging (dragNode or currentNode). Default: currentNode. * @description The id of this sortable, used to get a reference to this sortable list from another list. * @description How should an item move to another list: swap, move, copy. Default: swap * @description A selector string to test if a list item is invalid and not sortable * @description Hash map of all Sortables on the page. * @param {String|Node} node The node instance or selector string to use to find a Sortable instance. * @description Get a sortable instance back from a node reference or a selector string. * @param Sortable s A Sortable instance. * @description Register a Sortable instance with the singleton to allow lookups later. * @param Sortable s A Sortable instance. * @description Unregister a Sortable instance with the singleton.