Topic: sortable_element in a table?

Can sortable_element be used to sort the table headings on a table, or does it only work on lists?  I'd like to enable my users to reorder the columns of a table using drap and drop.

Re: sortable_element in a table?

Sounds like a Javascript question.  This is a rails forum.  Or maybe I misunderstood your question.

Kyle Peyton - Web Developer
Santa Clara, CA - Startontop

Re: sortable_element in a table?

I know you can make other elements than <li>s sortable (and draggable) with Scriptaculous, as I understand it's all about having one parent element with a bunch of children. So you could have a div containing a list of divs which are sortable or a div containing a number of images.

Whether it would work on a table and its child tr elements I'm not sure.

Last edited by marsvin (2007-08-07 15:04:40)