Wiki source code of Programming__WebObjects-Project WONDER-Frameworks-Ajax-AjaxDroppable
Version 2.1 by smmccraw on 2007/07/08 09:44
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | === AjaxDroppable === | ||
| 2 | |||
| 3 | AjaxDroppable represents the second half of the drag-and-drop implementation in Ajax framework. AjaxDroppable also uses a WOComponentContent, so any content that you would like to appear in the drop target should be inside of the AjaxDroppable's webobject tags. | ||
| 4 | |||
| 5 | An example of the Scriptaculous drag-and-drop is available [[here>>http://demo.script.aculo.us/shop]]. | ||
| 6 | |||
| 7 | ==== Wonder Bindings ==== | ||
| 8 | |||
| 9 | * id (required) - the ID of the Droppable element | ||
| 10 | * elementName - the name of the HTML element to wrap the Droppable, either: "div" or "span" | ||
| 11 | * droppedDraggableID - the draggableID of the Draggable that was dropped on this Droppable | ||
| 12 | * action - the action that is fired when the drop occurs | ||
| 13 | * droppedObject - the object that was dropped (if droppableObject was bound on the AjaxDraggable) | ||
| 14 | |||
| 15 | ==== Scriptaculous Bindings ==== | ||
| 16 | |||
| 17 | [[Scriptaculous Documentation>>http://wiki.script.aculo.us/scriptaculous/show/Droppables]] | ||
| 18 | |||
| 19 | * accept | ||
| 20 | * containment | ||
| 21 | * hoverclass | ||
| 22 | * overlap | ||
| 23 | * greedy | ||
| 24 | * onHover | ||
| 25 | * onDrop | ||
| 26 | |||
| 27 | Category:WebObjects |