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

Method Add

gui/tree.go:275–278  ·  view source on GitHub ↗

Add adds a child panel to this node

(child IPanel)

Source from the content-addressed store, hash-verified

273
274// Add adds a child panel to this node
275func (n *TreeNode) Add(child IPanel) {
276
277 n.InsertAt(n.Len(), child)
278}
279
280// InsertNodeAt inserts a new node at the specified position in this node
281// If the position is invalid, the function panics

Callers

nothing calls this directly

Calls 2

InsertAtMethod · 0.95
LenMethod · 0.95

Tested by

no test coverage detected