-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working Razor component drag events example #21992
Comments
Hello @Jarek300 ... We might be able to add such an example, but it will take a long time to reach this issue due to many high priority issues in the queue over the next several months. In the meantime if that cross-linked issue doesn't help, reach out to the community for assistance. We recommend the usual community support forums ... |
I'm afraid that you don't understand. Working example is not needed to better understand how to use 'DataTransfer and DataTransferItem that hold dragged item data.' Working example is needed because there is no information at all about DataTransfer and DataTransferItem classes. DataTransfer and DataTransferItem are part of Blazor from the beginning (almost two years) and in that time nobody in the community has figured out how to use them. Honestly, I suspect that DataTransfer and DataTransferItem classes do not work at all and never did. |
It looks like they're going to address at least some drag+drop functionality on dotnet/aspnetcore#18754. You can provide feedback on the work that they're doing on that issue. WRT having JS interop examples, I think we'll have to see what they come up with for 6.0. There's no point in showing JS interop approaches that their new built-in features will address with C#. In theory, we'll have the new features, whatever they are, documented by 6.0's release. ...... well ..... no point for 6.0 anyway. It would still be relevant for 3.x and 5.0 apps. I'll ask them when we document the 6.0 features if they want to flesh out any JS interop scenarios for earlier versions. |
Leave this issue open ... I'll use this issue to track the work for 6.0. |
The enhanced features for drag & drop support have been cut from 6.0. However, let's leave the issue open. They might produce features shortly after 6.0 releases, or we might end up documenting some JS interop examples. We'll take a look at this issue by EOY and determine how to address it or close as a won't fix. |
I'm going to move this to P3 ("Priority 3") and mark it for the PU ("product unit") ...
|
We're going to go with Option 1 ...
I usually generate doc issues for upcoming framework releases in Q2 each year from the new features tracking issue that will appear on the PU repo. We'll open a new issue for this when that tracking issue appears for .NET 7. As I mentioned earlier, everyone is welcome to provide feedback to the PU on their open issue for the new feature. |
well they mentioned that they will NOT implement this feature source |
Could you provide working example of using drag events i.e. ondragstart, ondragover and ondrop? Example should show how to put data into DataTransfer and DataTransferItem .NET objects and how data is received in ondrop event.
The problem was discussed here and postponed until .NET 5 was released.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: