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

TressData item copy/move enhancements #1421

Open
fschon opened this issue Aug 5, 2020 · 0 comments
Open

TressData item copy/move enhancements #1421

fschon opened this issue Aug 5, 2020 · 0 comments
Labels
enhancement New feature or request vaadin-grid

Comments

@fschon
Copy link

fschon commented Aug 5, 2020

TreeData currently has methods to remove and addItems as well as a moveSibling method. The removeItem and addItem use the fluid pattern and return the entire TreeData. When removeing an item all of its children are also removed, and lost.

There is no method to arbitrarily copy an item from one place in the tree to another, together with its children. The moveSibling is restricted to items with the same parent.

Additionaly when adding an item, the add only appends the item at the end of the tree. There should be a way to to prepend the item as well. This is needed in a Drag and Drop implementation using TreeGrid and TreeData - similar to the example here When dragging a item onto a different parent, the item can only be added to the bottom of the child list, whereas the BETWEEN indicator suggests it should be added to the beginning of the child list.

See forum post here.

@caalador caalador transferred this issue from vaadin/flow Aug 10, 2020
@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-grid-flow Oct 6, 2020
@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-grid May 19, 2021
@vaadin-bot vaadin-bot transferred this issue from vaadin/web-components May 21, 2021
@vaadin-bot vaadin-bot added enhancement New feature or request vaadin-grid labels May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vaadin-grid
Projects
None yet
Development

No branches or pull requests

2 participants