This documentation is currently being moved to our new documentation site.
Please view or edit the documentation there, instead.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.
Reorderer Configuration Options
Name | Description | Values | Default |
---|---|---|---|
| JavaScript object defining CSS-style selectors for important DOM elements. See Selectors for more information. | The object must be a list of objects containing any subset of the following keys:  dropWarning  | selectors: { dropWarning: ".flc-reorderer-dropWarning", movables: ".flc-reorderer-movable", selectables: ".flc-reorderer-movable", dropTargets: ".flc-reorderer-movable", grabHandle: "", stylisticOffset: "" } |
| JavaScript object containing listeners to be attached to the supported events. | Keys in the object are event names, values are functions or arrays of functions. | See Supported Events |
| an object containing CSS class names for styling the Reorderer. | The object may contain any of the keys defined in the default class names (shown to the right). Any class names not provided will revert to the default. | styles: { defaultStyle: "fl-reorderer-movable-default", selected: "fl-reorderer-movable-selected", dragging: "fl-reorderer-movable-dragging", mouseDrag: "fl-reorderer-movable-dragging", hover: "fl-reorderer-movable-hover", dropMarker: "fl-reorderer-dropMarker", avatar: "fl-reorderer-avatar" } |
| an object containing sets of keycodes to use for directional navigation, and for the modifier key used for moving a movable item. | The object must be a list of objects containing the following keys: | fluid.reorderer.defaultKeysets = [{ modifier : function (evt) { return evt.ctrlKey; }, up : fluid.reorderer.keys.UP, down : fluid.reorderer.keys.DOWN, right : fluid.reorderer.keys.RIGHT, left : fluid.reorderer.keys.LEFT }, { modifier : function (evt) { return evt.ctrlKey; }, up : fluid.reorderer.keys.i, down : fluid.reorderer.keys.m, right : fluid.reorderer.keys.k, left : fluid.reorderer.keys.j }]; |
selectablesTabindex | Normally injected automatically from the layoutHandler | String IoC expression | selectablesTabindex: "{that}.layoutHandler.options.selectablesTabindex" |
| a function that returns a valid DOM node to be used as the dragging avatar | Â | The item being dragged will be cloned |
| This option is used to disable wrapping of elements within the container. | boolean |
|
mergePolicy | an object describing how user options should be merged in with defaults For information on options merging, see Options Merging | Â | mergePolicy: { keysets: "replace", "selectors.selectables": "selectors.movables", "selectors.dropTargets": "selectors.movables" } |