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

Method Len

gui/tree.go:224–227  ·  view source on GitHub ↗

Len returns the number of immediate children of this node

()

Source from the content-addressed store, hash-verified

222
223// Len returns the number of immediate children of this node
224func (n *TreeNode) Len() int {
225
226 return len(n.items)
227}
228
229// SetExpanded sets the expanded state of this node
230func (n *TreeNode) SetExpanded(state bool) {

Callers 4

AddMethod · 0.95
AddNodeMethod · 0.95
RemoveMethod · 0.45
FindChildMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected