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

Method SetExpanded

gui/tree.go:230–235  ·  view source on GitHub ↗

SetExpanded sets the expanded state of this node

(state bool)

Source from the content-addressed store, hash-verified

228
229// SetExpanded sets the expanded state of this node
230func (n *TreeNode) SetExpanded(state bool) {
231
232 n.expanded = state
233 n.update()
234 n.updateItems()
235}
236
237// FindChild searches for the specified child in this node and
238// all its children. If found, returns the parent node and

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
updateItemsMethod · 0.95

Tested by

no test coverage detected