enhancementhelp wanted
倉庫指標
- 星標
- (10,394 顆星)
- PR 合併指標
- (平均合併 6天 6小時) (30 天內合併 108 個 PR)
描述
Feature request type
Enhance component
Component name
TreeView
Is your feature request related to a problem?
no
Describe the solution you'd like
It would be nice to have a Drag&Drop option in the TreeView component. Maybe it can be achieved with the MudDropZone.
I think, the best way to achieve this is to implement, alongside with the visual behavior, an event called "OnDrop". The following subjects should be evaluated:
- OnDrop can be intercepted
- OnDrop should be cancelable (undo action)
- OnDrop should deliver information about where it was dragging from and where it is dropped into (Node objects)
- OnDrop should be working within async manner (That way, we can implement remote side operations, such as reordering a datasource via REST)
- If dropping a node object into another leaf node that hasn´t been loaded (ServerSide data) - it should be removed
- Should the dropping behavior follow the same principles and rules as the MudDropZone component? Or do we have niche cases?
- Should a dragged node expand a leaf node while it is hovering on it and the leaf node is in collapsed state?
What do you think about the feature? Please let me know.
Have you seen this feature anywhere else?
No response
Describe alternatives you've considered
No response
Pull Request
- I would like to do a Pull Request
Code of Conduct
- I agree to follow this project's Code of Conduct