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.
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 |
---|---|
|
A function that returns a list of all elements within the document that are to be movable by the Reorderer. (required) |
|
A function that returns a list of all elements within the document that can be cycled through by the Reorderer. |
|
A function that returns a list of all elements within the document that can be a drop target for items in the Reorderer. |
|
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 |
---|---|---|---|
|
A function to be called each time the order of items has changed, to communicate the new order to the server. The |
a function |
|