The "only" option in Sortable.create "Further restricts the selection of
child elements to only encompass elements with the given CSS class (or,
if you provide an array of strings, on any of the classes)".
So just include all the class elements except those you want to be
sticky in "only".
Works great!
- Doug Forrest
Lindsey Simon wrote:
In a sortable list, is there a way to say, pass a className whereby some
of the elements in the sortable element would not become
draggables/droppables? If not, it seems like it could be implemented
similarly to the handle option.. Any interest?
Also - I submitted a patch that adds the option "delay" so that draggables
in a Sortable won't truly become activated until after the mouse has
been down on the draggable for some length of time. I'd love to get some
feedback/testing if anyone is interested in that too - my patch included
a functional test. I needed this functionality because I'm implementing
a DataGrid and I've turned the <th>'s into a Sortable with horizontal
constraint so that one can drag columns around in a table. Yeeha! It
only works because I've manipulated the display property of the th's,
but no matter - it does work. If anyone is interested in this stuff on
this list, lemme know too,
Regards,
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs