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.

GridLayoutHandler API - v0.4

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

The GridLayoutHandler is a Layout Handler designed to assist the Reorderer in working with linear sequences of items that are styled as a grid.

Constructors

new fluid.GridLayoutHandler(findMovables[, options]);
new fluid.GridLayoutHandler(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 GridLayoutHandler 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 callback is optional. For a detailed explanation of the order-changed callback, see Order-Changed Callback - v0.4.

a function

function(item) {};