Skip to content

Instantly share code, notes, and snippets.

@Schniz
Created September 14, 2014 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Schniz/f4a0e1f3325bed2a5fd8 to your computer and use it in GitHub Desktop.
Save Schniz/f4a0e1f3325bed2a5fd8 to your computer and use it in GitHub Desktop.
Ember <3 for Udi
// {{source-wat}}
App.SourceWatComponent = Ember.Component.extend({
attributeBindings: ['draggable'],
draggable: 'true',
dragStart: function(e) {
console.log("drag start");
}
});
// {{dest-wat}}
App.DestWatComponent = Ember.Component.extend({
classNameBindings: ["isMemberOver"],
isMemberOver: false,
dragEnter: function(e) {
this.set('isMemberOver', true);
},
dragLeave: function(e) {
this.set('isMemberOver', false);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment