Skip to content
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

Closed
Jarek300 opened this issue Apr 7, 2021 · 8 comments
Closed

Working Razor component drag events example #21992

Jarek300 opened this issue Apr 7, 2021 · 8 comments
Assignees
Labels
Blazor Pri3 Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

@Jarek300
Copy link

Jarek300 commented Apr 7, 2021

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.

@dotnet-bot dotnet-bot added ⌚ Not Triaged Blazor Source - Docs.ms Docs Customer feedback via GitHub Issue labels Apr 7, 2021
@guardrex guardrex self-assigned this Apr 7, 2021
@guardrex guardrex added the Pri3 label Apr 7, 2021
@guardrex guardrex changed the title As .NET 5 is released - could you provide now working example of using drag events i.e. ondragstart, ondragover and ondrop? Working Razor component drag events example Apr 7, 2021
@guardrex
Copy link
Collaborator

guardrex commented Apr 7, 2021

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

@Jarek300
Copy link
Author

Jarek300 commented Apr 8, 2021

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.

@guardrex
Copy link
Collaborator

guardrex commented Apr 8, 2021

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.

@guardrex guardrex added 6.0 Pri1 and removed Pri3 labels Apr 8, 2021
@Jarek300 Jarek300 closed this as completed Apr 8, 2021
@guardrex guardrex reopened this Apr 8, 2021
@guardrex
Copy link
Collaborator

guardrex commented Apr 8, 2021

Leave this issue open ... I'll use this issue to track the work for 6.0.

@guardrex
Copy link
Collaborator

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.

@guardrex
Copy link
Collaborator

guardrex commented Nov 12, 2021

I'm going to move this to P3 ("Priority 3") and mark it for the PU ("product unit") ...

  • Eventually, they'll schedule work at Drag & Drop aspnetcore#18754. If they say tho that they plan to build something into the framework for .NET 7, that's too far out to maintain an issue here. We'll place a new issue mid-2022.
  • When they have a chance to run down the doc issues either in December or 22Q1, they might provide a sample/example for this sooner than providing built-in framework feature. In that case, we'll use this issue to track the work. Stand-by a bit longer because they can't be pinged about this right now. They're all 🏃😅 on the mop-up of the 6.0 release.

@guardrex
Copy link
Collaborator

We're going to go with Option 1 ...

Eventually, they'll schedule work at dotnet/aspnetcore#18754. If they say tho that they plan to build something into the framework for .NET 7, that's too far out to maintain an issue here. We'll place a new issue mid-2022.

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.

@puschie286
Copy link

well they mentioned that they will NOT implement this feature source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blazor Pri3 Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Archived in project
Development

No branches or pull requests

4 participants