mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #561] Implement TreeNode.RemoveChild(node *TreeNode) #409
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#409
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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()andSetChildren()with a bit of logic in between, but a companion (reverse) function toAddChild()would be convenient.Thanks!
@rivo commented on GitHub (Feb 17, 2021):
You got it. :-)