[GH-ISSUE #561] Implement TreeNode.RemoveChild(node *TreeNode) #409

Closed
opened 2026-03-04 01:04:44 +03:00 by kerem · 1 comment
Owner

Originally created by @lenormf on GitHub (Feb 8, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/561

Hi,

It'd be nice to have a function that allows removing an arbitrary child node, passed as argument. It seems to be doable already using a combination of GetChildren() and SetChildren() with a bit of logic in between, but a companion (reverse) function to AddChild() would be convenient.

Thanks!

Originally created by @lenormf on GitHub (Feb 8, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/561 Hi, It'd be nice to have a function that allows removing an arbitrary child node, passed as argument. It seems to be doable already using a combination of `GetChildren()` and `SetChildren()` with a bit of logic in between, but a companion (reverse) function to `AddChild()` would be convenient. Thanks!
kerem closed this issue 2026-03-04 01:04:44 +03:00
Author
Owner

@rivo commented on GitHub (Feb 17, 2021):

You got it. :-)

<!-- gh-comment-id:780480204 --> @rivo commented on GitHub (Feb 17, 2021): You got it. :-)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#409
No description provided.