[Seaside] JQDroppable convience method

Paul DeBruicker pdebruic at gmail.com
Mon Feb 8 20:29:51 UTC 2010


How can I add an object that renders a draggable to a collection when
the draggable is dropped on a droppable?

Did the methods mentioned below get dropped or replaced with something
else? They don't seem to be in JQAjax at the moment:

2009/10/28 Lukas Renggli <renggli at gmail.com>:
> I've quickly added some convenience methods to JQAjax that serialize
> the information of the jQueryUI events:
>      #callbackAccordion:
>      #callbackDraggable:
>      #callbackDroppable:
>      #callbackResizable:
>      #callbackSlider:
>      #callbackSortable:
>      #callbackTabs:
> All these callbacks expect a block with one argument that gets
> evaluated with a dictionary of the event elements as documented in the
> jQueryUI documentation.
> Johan, your code would now look like this:
>     ... onDrop: (html ajax
>         callbackDroppable: [ :event |
>             (event at: #draggable) doSomething ])
> Note that I also renamed #trigger:passengers: to
> #callback:passengers:, that fits better the jQuery protocol.
> Let me know if this is useful or if there is something else missing.
> This is mostly untested functionality so expect to encounter bugs.
> Cheers,
> Lukas



More information about the seaside mailing list