blazor-dragdrop icon indicating copy to clipboard operation
blazor-dragdrop copied to clipboard

Add support for `effectAllowed ` and `dropEffect`

Open ViRuSTriNiTy opened this issue 3 years ago • 2 comments

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

ViRuSTriNiTy avatar Feb 03 '21 17:02 ViRuSTriNiTy

Any solution?

angelru avatar May 17 '21 09:05 angelru

@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.

ViRuSTriNiTy avatar May 17 '21 09:05 ViRuSTriNiTy