« Return to Thread: Grid Reorderer

Re: Grid Reorderer

by Antranig Basman :: Rate this Message:

Reply to Author | View in Thread

The "new" Fluid standard is for argument 2 to be an "options structure". Where there
is no 2nd argument, all the component options revert to their defaults - you can
consider the 2nd argument is "undefined".

A good way to see the configuration space for "Grid Reorderer" shown off is to
look at the pages for the "Image Reorderer"
http://wiki.fluidproject.org/display/fluid/Image+Reorderer
(formely known as "Lightbox"). The Image Reorderer is simply the base reorderer
attached to the "GridLayout", with a bit of wrapping for its options.

Everything ultimately feeds into the base Reorderer API, at
http://wiki.fluidproject.org/display/fluid/Advanced+Reorderer+API
the "options" structure is the same structure for every Reorderer variant,
the only difference between the different initialisation styles is that
some of the options are filled in for you.

Cheers,
A.

Sobieralski, Damian Michael wrote:

>
> http://wiki.fluidproject.org/display/fluid/Integrating+the+Reorderer
>
> Could I get a better example of the Grid Reorderer usage?  The page above seems to be inconsistent:
>
> "jQuery(document).ready(function () {
>   fluid.reorderGrid(".reorderer_container");
> });
>
> 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
>
> _______________________________________________
> fluid-talk mailing list
> fluid-talk@...
> http://fluidproject.org/mailman/listinfo/fluid-talk
_______________________________________________
fluid-talk mailing list
fluid-talk@...
http://fluidproject.org/mailman/listinfo/fluid-talk

 « Return to Thread: Grid Reorderer