How to remove child view added by addChildren() #5405
Labels
package:ui
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
Milestone
It is possible to add a child view omitting
ViewCollection
. We do it eg inButtonView
https://github.com/ckeditor/ckeditor5-ui/blob/606045953783b4ba5f90d7bac885e6efdb568b18/src/button/buttonview.js#L229-L235
addChildren()
calls init on new view and register this view as a child thanks to this view will be destroyed together with its parent.But there is no way to remove such a view before the parent will be removed. Something as
removeChildren()
is needed.The text was updated successfully, but these errors were encountered: