Postlagerkarte / blazor-dragdrop

Easy-to-use Drag and Drop Library for Blazor
MIT License
405 stars 96 forks source link

Add support for `effectAllowed ` and `dropEffect` #95

Open ViRuSTriNiTy opened 3 years ago

ViRuSTriNiTy commented 3 years ago

Hi there,

it would be nice to allow the adjustment of effectAllowed and dropEffect to change the cursor as needed while executing a drag & drop operation.

As the component DropZone handles ondrag events in C# directly there is no chance to intercept and update the settings. I think this would require JsInterop as mentioned by Microsoft:

DataTransfer and DataTransferItem hold dragged item data. Implement drag and drop in Blazor apps using JS interop with HTML Drag and Drop API. https://docs.microsoft.com/en-us/aspnet/core/blazor/components/event-handling?view=aspnetcore-5.0#event-argument-types

So lonG Daniel

angelru commented 3 years ago

Any solution?

ViRuSTriNiTy commented 3 years ago

@angelru Sorry but nope. Since my PRs don't get recognized by the repo owner I basically stopped working on the project. So it's unlikely that a solution comes from my side.