Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Section
Column
width65%

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:

  1. The item that was just moved by the user, as a jQuery instance
  2. Information about the new position of the item, as a position object
  3. 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

Column
solid
Panel
borderStyle
borderColor#566b30
bgColor#fff
titleBGColor#D3E3C4
borderStylesolid
titleOn This Page
Table of Contents
toc
maxLevel
5
minLevel2maxLevel5
Panel
borderColor#321137
bgColor#fff
titleBGColor#cccccc
borderStylesolid
titleStill need help?borderStylesolid

Join the infusion-users mailing list and ask your questions there.

...