Sortable and Droppable (And helper !)
Hello,
I was trying to make something like here ( http://jqueryui.com/demos/sortable/#connect-lists-through-tabs ) with sortable and droppable Interactions.
Using the same code that in the demo i'm ading an helper on the sortable interaction ! In order to have a friendly interface.
Like this :
- helper: function(event , el){
- return el.width(100).height(30); // object returned by reference
- }
Quite ugly huh !
Or this :
- helper: function(event , el){
- return el.width(100).height(30).clone(); // object cloned
- }
Argh ! Fail !
Last chance :
- helper: function(event , el){
- return $('<div>Foo bar</div>' ).width(100).height(30);
- }
Still fail !
I think this is the way helper functionnality is working but don't you think that when we drop an helper the original element should be passed as argument in the drop treating function ?