Hi all,
I've just raised a ticket <http://dev.rubyonrails.com/ticket/2826>
with a
patch for enabling 'snapToGrid' feature for draggables.
I'm writing a framework on top of scriptaculous and it appeared to me that
this would be something that could belong to core Draggable objects.
To activate, just add to draggable options on creation. (By default gridSize
is set to 10)
> new
Draggable('revertbox1',{handle:'handle1',snapToGrid:true,
gridSize:30,revert:true});
>
>
I also stuck this <http://dev.rubyonrails.com/ticket/2827> in which has
been
very handy for me and allows draggable observers to react to the draggable
drag event.
Hope you find it usefull,
Regards,
Saimon
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs