kutlugsahin / ngx-smooth-dnd

angular wrapper for smooth-dnd
165 stars 30 forks source link

dropPlaceholder not working for me #51

Open yogainalift opened 4 years ago

yogainalift commented 4 years ago

Not sure if I am doing something wrong, can someone please confirm?

I consumed this library as per API: [dragPlaceholder]="{className: 'class-name'}" but it does not show up. If I use a truthy value e.g. [dropPlaceholder]="true" then the default placeholder shows up correctly.

Minimum reproduction: https://stackblitz.com/edit/angular-ivy-8qcthl

playonlinux5683 commented 3 years ago

Hey @yogainalift ,

I got the same issue.

My solution is to keep [dropPlaceholder]="true" and override this CSS class .smooth-dnd-drop-preview-default-class and TADDAAAA your placeholder looks like what you wanted.

Here is the stackblitz

Have fun my friend