Reorderer Configuration Options - v0.5
This page exists to serve as a source for an excerpt, to place this table into more than one other page in the wiki.
Name |
Description |
Values |
Default |
|---|---|---|---|
|
an object describing how user options should be merged in with defaults |
|
mergePolicy: {
"selectors.selectables": "selectors.movables",
"selectors.dropTargets": "selectors.movables",
keysets: "replace"
}
|
|
an object containing CSS class names for styling the Reorderer. See fluid:below for a discussion of CSS styling of 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: "orderable-default",
selected: "orderable-selected",
dragging: "orderable-dragging",
mouseDrag: "orderable-dragging",
hover: "orderable-hover",
dropMarker: "orderable-drop-marker",
avatar: "orderable-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.defaultKeysets = [{
modifier : function (evt) {
return evt.ctrlKey;
},
up : fluid.keys.UP,
down : fluid.keys.DOWN,
right : fluid.keys.RIGHT,
left : fluid.keys.LEFT
},
{
modifier : function (evt) {
return evt.ctrlKey;
},
up : fluid.keys.i,
down : fluid.keys.m,
right : fluid.keys.k,
left : fluid.keys.j
}];
|
|
a function that returns a valid DOM node to be used as the dragging avatar |
|
The item being dragged will be cloned |
|
the ID of the element containing any instructional messages |
|
"message-bundle:" |