Use in ondragstart event handler to set data on the event. (drag-set 'plain/text' 'some text') is equivalent to calling event.dataTrasfer.setData('plain/text') in the event handler.
This helper can accept application/json mime type in which case it will JSON.stringify the received data.
Use in ondrop event handler to retrieve data set with event.dataTransfer.setData. (drag-get 'plain/text') is equivalent to event.dataTransfer.getData('plain/text').
This helper can accept application/json mime type in which case it will JSON.parse the received data.
Calls event.preventDefault().
Calls event.stopPropagating().
Applies specified drop effect onto the event. Equivalent to calling even.dropEvent = move;
git clonethis repositorynpm installbower install
ember server- Visit your app at http://localhost:4200.
npm test(Runsember try:testallto test your addon against multiple Ember versions)ember testember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.
Thank you Miguel Camba for suggesting to try doing drag and drop with pure events.