Dashboard > Fluid > ... > API documents > Reorderer API
Reorderer API
Added by Anastasia Cheetham, last edited by Anastasia Cheetham on Sep 30, 2008  (view change)
Labels: 


This documentation refers to the latest trunk version of the Reorderer code. For documentation specific to the stable v0.5 release, please see Reorderer API - v0.5.

Reorderer Overview

The Reorderer will handle almost any arbitrary stream of markup you pass to it, assuming a very simple contract is maintained:

  1. The orderable elements are contained within some kind of container element.
  2. A selector for the container is passed to the Reorderer upon instantiation.

Optional:

  1. Provide a callback function. This will be called by the Reorderer each time the user reorders an element, and is generally used to communicate ordering changes back to the server.
  2. Specify configuration options to customize the behaviour of the Reorderer, including the selection of orderable elements within the container. These are documented below.
Still need help?

Join the fluid-talk mailing list and ask your questions there.


Creating a Reorderer

Lists

fluid.reorderList(container[, options]);

Allows reordering of elements in a vertical or horizontal list. More information is available at List Reorderer API.

Grids

fluid.reorderGrid(container[, options]);

Allows reordering of a grid of items. More information is available at Grid Reorderer API.

Layouts

fluid.reorderLayout(container[, options]);

Allows reordering of portlets, content blocks, or other chunks of layout arranged in columns. More information is available at Layout Reorderer API.

Images

fluid.reorderImages(container[, options]);

Allows reordering of images, image thumbnails. More information is available at Image Reorderer API.


Advanced use of the Reorderer

For cases where more control over the configuration of the Reorderer instance is needed, a Reorderer can be created directly, and configured for your specific needs:

fluid.reorderer(container[, options]);

For more information about these creator functions, see Advanced Reorderer API.

Site running on a free Atlassian Confluence Open Source Project License granted to The FLUID Project. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5 Build:#805 Apr 26, 2007) - Bug/feature request - Contact Administrators