MCPcopy
hub / github.com/g3n/engine / removeItems

Method removeItems

gui/tree.go:394–406  ·  view source on GitHub ↗

removeItems removes this node children from the tree list

()

Source from the content-addressed store, hash-verified

392
393// removeItems removes this node children from the tree list
394func (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

Callers 2

removeMethod · 0.95
updateItemsMethod · 0.95

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected