removeItems removes this node children from the tree list
()
| 392 | |
| 393 | // removeItems removes this node children from the tree list |
| 394 | func (n *TreeNode) removeItems() { |
| 395 | |
| 396 | for _, ipanel := range n.items { |
| 397 | // Remove item from scroller |
| 398 | n.tree.List.Remove(ipanel) |
| 399 | // If item is a node, remove all children |
| 400 | node, ok := ipanel.(*TreeNode) |
| 401 | if ok { |
| 402 | node.removeItems() |
| 403 | continue |
| 404 | } |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | // insert inserts this node and its expanded children in the tree list |
| 409 | // at the specified position |
no test coverage detected