Child pages
  • ListLayoutHandler API - v0.4

Documentation for a historical release of Infusion: 1.3
Please view the Infusion Documentation site for the latest documentation.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Skip to end of metadata
Go to start of metadata

This documentation refers to the v0.4 released version of the List Layout Handler code.

The ListLayoutHandler is a layout handler designed to assist the Reorderer in working with lists.

Constructors

new fluid.ListLayoutHandler(findMovables[, options]);
new fluid.ListLayoutHandler(findItems[, options]);

Parameters

findMovables

A function that returns a list of all elements within the document that are to be movable by the Reorderer.

On This Page
Still need help?

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

findItems

A set of key/value pairs that provide a number of functions as follows:

Name

Description

movables

A function that returns a list of all elements within the document that are to be movable by the Reorderer. (required)

selectables

A function that returns a list of all elements within the document that can be cycled through by the Reorderer.

dropTargets

A function that returns a list of all elements within the document that can be a drop target for items in the Reorderer.

grabHandle

A function that takes an item and returns the part of the item that can be used to pick up the item.

options (optional)

An optional set of key/value pairs that configure the Layout Handler.

The options for the ListLayoutHandler are:

Name

Description

Value

Default

orderChangedCallback

A function to be called each time the order of items has changed, to communicate the new order to the server. The item parameter is optional. For a detailed explanation of the order-changed callback, see Order-Changed Callback - v0.4.

a function

function(item) {};

orientation

Indicates whether the list is oriented vertically (the default) or horizontally

fluid.orientation.VERTICAL and fluid.orientation.HORIZONTAL

fluid.orientation.VERTICAL

  • No labels