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

Provide collection based append/remove methods for Node #13599

Closed
stefanuebe opened this issue Apr 22, 2022 · 1 comment · Fixed by #14204
Closed

Provide collection based append/remove methods for Node #13599

stefanuebe opened this issue Apr 22, 2022 · 1 comment · Fixed by #14204

Comments

@stefanuebe
Copy link
Contributor

Describe your motivation

Currently it is not simply possible to add/remove a collection of elements to/from another element (node). It first has to be converted to an array. That feels clumsy and incomplete.

Describe the solution you'd like

Provide new, collection based append/insert/removeChild methods to Node which do the same as the varargs variants.

MarcinVaadin added a commit that referenced this issue Jul 21, 2022
Provides collection based append/remove/insert methods for Node. Deprecates varargs methods.
@MarcinVaadin MarcinVaadin linked a pull request Jul 21, 2022 that will close this issue
9 tasks
@MarcinVaadin MarcinVaadin linked a pull request Jul 22, 2022 that will close this issue
9 tasks
@MarcinVaadin MarcinVaadin self-assigned this Jul 22, 2022
mshabarov pushed a commit that referenced this issue Jul 28, 2022
Added Collection based appendChild / appendVirtualChild / insertChild / removeChild / removeVirtualChild methods for com.vaadin.flow.dom.Node

Fixes #13599
Vaadin Flow enhancements backlog (Vaadin 10+) automation moved this from Work In Progress to Done / Pending Release Jul 28, 2022
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 23.2.0.beta1 and is also targeting the upcoming stable 23.2.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment