« Return to Thread: Grid Reorderer

RE: Grid Reorderer

by Sobieralski, Damian Michael :: Rate this Message:

Reply to Author | View in Thread

Can you help me understand the listeners better?

I found this:

http://wiki.fluidproject.org/display/fluid/Grid+Reorderer+API+-+v0.5

listeners: {
    onShowKeyboardDropWarning: null,
    onMove: null,
    afterMove: null
}

Could you describe (or point me to a link) of what events these listeners ... uhhh..... listen for?

Also, is this list complete?  I was hoping to have a listener that fired off of a ...ummm......... "just picked up" event.

Thanks.

- Damian


> -----Original Message-----
> From: Anastasia Cheetham [mailto:a.cheetham@...]
> Sent: Wednesday, October 08, 2008 2:56 PM
> To: Sobieralski, Damian Michael
> Cc: fluid-talk@...
> Subject: Re: Grid Reorderer
>
>
> 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.5
>
> If 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

 « Return to Thread: Grid Reorderer