Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Can.Control and Drop Events

$
0
0
I have two Can.Controls, each on a unordered list. I'd like to listen to drop events from one list of lis onto inputs in the other list. What's the best way to do this?

Currently in my receiving UL I have...
  1. "li input drop" : function(el,event){
  2.       console.log(event);
  3. }
I get the event coming through, but there's no reference to which item is being dropped. What's the best way to get reference to the dropped object? Or alternatively, if I'm doing it wrong, what's the best way to manage drag/drop in CanJS?

Viewing all articles
Browse latest Browse all 3491

Trending Articles