From draggable to sortable with one click
Hi guys.
I received a task today for making a toolbar with various items and a
drop zone which is also sortable. and i'm kinda stuck at this :|
Let me explain more:
- the toolbar have five items (icons). Theese icons must NOT be
sortable (to change the first one with second and viceversa). These
icon are clickable (no problem) and draggable over the main area.
- the main area is a standard sortable (only horizontal) with 2 - 10
(max) items and must accept any droppable from the toolbar.
Ok, so far so good.
The main problem is that when i hover the main area with a draggable,
i want the dragged element to act like a sortable element.
Any idea how to accomplish this? :|
Thanks a lot!