The Reorderer enables users to directly move around and re-arrange content on a page. Application developers can easily integrate the Reorderer into their application, connecting it to their server in a variety of ways. The afterMove event is used for this purpose. For more information about how to listen for a Fluid event, see the Events for Component Users page. Whenever an item has been moved by the user, your afterMove listener is invoked and provided with three arguments: - The item that was just moved by the user, as a
jQuery instance - Information about the new position of the item, as a
position object - A list of all the orderable elements, in the new order, as a
jQuery instance
The position argument is a mini-object that provides specific information about the item's destination. It looks like this: Field | Type | Description |
---|
element
| DOM element | The item the dragged item was dropped next to (i.e. the drop target) | position
| integer | A constant representing the relation of the drop position to the drop target - one of the constants fluid.position.BEFORE , fluid.position.AFTER , fluid.position.INSIDE , or fluid.position.REPLACE |
|