ObaidUrRehman / ng-drag-drop

Drag & Drop for Angular - based on HTML5 with no external dependencies. :tada:
MIT License
239 stars 123 forks source link

Feature: Add custom dragHelper functionality #22

Closed ObaidUrRehman closed 7 years ago

ObaidUrRehman commented 7 years ago

The draggable directive should take a dragHelper input that should be a TemplateRef. One should be able to define this in the markup:

<div #myHelper>I am a custom DragHelper</div>

and be able to use it as custom dragHelper. We should also add a default dragHandler that should be a clone of the element since the current one sometimes becomes too transparent to provide a good visual feedback.

jiann4321 commented 7 years ago

Need this functionality as well. Thanks!

ObaidUrRehman commented 7 years ago

In v 1.5.0 Added dragImage input to the draggable directive that takes image Url that is set when the item is being dragged. Later will expand this to custom elements. Closing this for now.