Lindsey Simon
2006-May-29 18:31 UTC
Re-orderable column DataGrid + Patches for Sortable.delay and Sortable.ignorePositionXY
I would love to get some feedback and test a patch to rev. 4380. First, the money shot - check out this demo of a scriptaculous DataGrid: http://development.finetooth.com/?p=13 I''m using the <tr> as a sortable with the <th>''s as the sortable elements. The Patch file: http://www.commoner.com/~lsimon/scriptaculous/delay_and_ignorePosition_forSortables.diff The patch adds two pieces of functionality used in the demo: 1. Sortable- options.delay FunctionalTest: http://www.commoner.com/~lsimon/scriptaculous/test/functional/sortable6_test.html This allows for a draggable to take a delay paramater to delay the "activate" function. It also notifies observers onActivate. 2. Sortable- options.ignorePositionX and options.ignorePositionY FunctionalTest: http://www.commoner.com/~lsimon/scriptaculous/test/functional/sortable7_test.html With a sortable, we sometimes want to be able to go up and down or right to left outside of the containment area of the sortable''s tag. To quote someone from the IRC channel explaining the situation before this option: ''Sortables don''t change places when the mouse is not above the sortable''s container while dragging". Now they can. -- Lindsey Simon lsimon-kAMMLXQ8Af9Wk0Htik3J/w@public.gmane.org Key fingerprint = C6A9 B9D9 677E A631 3E7F 43BF 5E2F 77F1 A33C B117 Public Key: http://www.commoner.com/pubkey.asc
Jerod Venema
2006-May-29 20:16 UTC
Re: Re-orderable column DataGrid + Patches for Sortable.delay and Sortable.ignorePositionXY
Nice grid man.... On 5/29/06, Lindsey Simon <lsimon-kAMMLXQ8Af9Wk0Htik3J/w@public.gmane.org> wrote:> > I would love to get some feedback and test a patch to rev. 4380. > > First, the money shot - check out this demo of a scriptaculous DataGrid: > http://development.finetooth.com/?p=13 > > I''m using the <tr> as a sortable with the <th>''s as the sortable elements. > > The Patch file: > http://www.commoner.com/~lsimon/scriptaculous/delay_and_ignorePosition_forSortables.diff > > The patch adds two pieces of functionality used in the demo: > > 1. Sortable- options.delay > FunctionalTest: > http://www.commoner.com/~lsimon/scriptaculous/test/functional/sortable6_test.html > > This allows for a draggable to take a delay paramater to delay the > "activate" function. It also notifies observers onActivate. > > 2. Sortable- options.ignorePositionX and options.ignorePositionY > FunctionalTest: > http://www.commoner.com/~lsimon/scriptaculous/test/functional/sortable7_test.html > > With a sortable, we sometimes want to be able to go up and down or > right to left outside of the containment area of the sortable''s tag. > To quote someone from the IRC channel explaining the situation before > this option: ''Sortables don''t change places when the mouse is not > above the sortable''s container while dragging". Now they can. > > -- > > Lindsey Simon > lsimon-kAMMLXQ8Af9Wk0Htik3J/w@public.gmane.org > Key fingerprint = C6A9 B9D9 677E A631 3E7F 43BF 5E2F 77F1 A33C B117 > Public Key: http://www.commoner.com/pubkey.asc > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >