Inside your draggable use the onBeforeUpdate, this runs once for every
iteration of the drag movement, to read the current position of your
draggable and move your other DIVs accordingly. You may have to keep
track of the start position and the delta of the movement to move the
other elements properly.
new Draggable(''someDiv'',{onBeforeUpdate: moveOtherStuff()});
On Dec 15, 3:51 pm, coruscant
<ca...-q7UtVs2j7f0sV2N9l4h3zg@public.gmane.org>
wrote:> Hello,
>
> in order to programme an easy time schedule I want to have an excel
> like spreadsheet where cols are days and rows are 30 minutes. With
> draggables and droppables it seems to be quite easy to be able to move
> appointments on this spreadsheet, e.g. from Monday 9 a.m. to Tuesday 1
> p.m. But what if somebody wants to move all appointments of Monday and
> Tuesday morning to Wednesday and Thursday morning? Is it only possible
> to move one draggable per mouseclick or can I simulate excel like
> behavior (pressing the shift button or the string button makes it
> possible to select more than one field/dropable at once)?
>
> Did someone do this before or is there a demo available?
>
> Thanks,
> Benedikt.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---