Sortable nested elements
Sortable nested elements
Can sortable handle nested elements?
I have a flatplan app for a magazine - I want to be able to move pages
onto spreads, and move spreads around the flatplan. So a user could
move say page 2 from the first spread onto the 2nd spread, and move
the whole of the second spread to be the, say, 15th spread - and so
on.
Obviously I will need to build some logic that only allows two pages
per spread (printers are so demanding that way) but having used UI
elsewhere am keen to re-use if pos.
I am also looking at jTree to do this - but would prefer to re-use UI
if pos. Is it pos? And any pointers hugely appreciated - virtual pints
of ale all round.
Many thanks
Ben
(this is the sort of thing I had in mind ...)
<ol>
<li id="spread_1">
<ol>
<li id="page_1"><img src=" jpeg of p1" /></li>
<li id="page_2"><img src=" jpeg of p2" /></li>
</ol>
</li>
<li id="spread_2">
<ol>
<li id="page_3"><img src=" jpeg of p3" /></li>
<li id="page_4"><img src=" jpeg of p4" /></li>
</ol>
</li>
....
</ol>
Ben