[Seaside] JQDroppable convience method
Lukas Renggli
renggli at gmail.com
Mon Feb 8 20:34:51 UTC 2010
These methods are all defined in JQAjax through the JQueryUI package
as class extensions.
Lukas
On 8 February 2010 21:29, Paul DeBruicker <pdebruic at gmail.com> wrote:
> Hello,
>
> 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
>>
>
>
> Thanks.
>
> Paul
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list