On 8-Oct-08, at 2:28 PM, Sobieralski, Damian Michael wrote:
>
http://wiki.fluidproject.org/display/fluid/Integrating+the+Reorderer>
> In this example, two parameters are passed to the
> fluid.reorderGrid() initialization:
>
> * a container selector based on the class of the container
> (".reorderer_container")
> * an item selector based on the class of the divs (".orderable")"
>
> But there is only ONE parameter passed to fluid.reorderGrid()
Damian, thanks for catching this!! It seems this page was not properly
updated to reflect the new API. I will address this asap, but in the
meantime:
The first parameter to fluid.reorderGrid() is indeed the container
selector. A second parameter is an optional set of configuration
parameters, as described on the API page:
http://wiki.fluidproject.org/display/fluid/Grid+Reorderer+API+-+v0.5If you are using the default selector for the 'movable' items (which
is a class of "movable"), then you don't need the second parameter. If
you'd like to use a different selector, the 'selectors' option
parameter can be used to specify it, for example:
var mySelectors = {
movables: ".my-movable-class" // or whatever
selector you need
};
var opts = {
selectors: mySelectors
}
fluid.reorderGrid(".reorderer_container", opts);
Does this make sense?
--
Anastasia Cheetham
a.cheetham@...
Software Designer, Fluid Project
Adaptive Technology Resource Centre / University of Toronto
"When we remember we are all mad, the mysteries
disappear and life stands explained."
-- Mark Twain
_______________________________________________
fluid-talk mailing list
fluid-talk@...
http://fluidproject.org/mailman/listinfo/fluid-talk