insert inserts this node and its expanded children in the tree list at the specified position
(pos int)
| 408 | // insert inserts this node and its expanded children in the tree list |
| 409 | // at the specified position |
| 410 | func (n *TreeNode) insert(pos int) int { |
| 411 | |
| 412 | n.update() |
| 413 | n.tree.List.InsertAt(pos, n) |
| 414 | var padLeft float32 = n.tree.styles.Padlevel * float32(n.level()) |
| 415 | n.tree.List.SetItemPadLeftAt(pos, padLeft) |
| 416 | pos++ |
| 417 | return n.insertItems(pos) |
| 418 | } |
| 419 | |
| 420 | // insertItems inserts this node items in the tree list |
| 421 | // at the specified position |
nothing calls this directly
no test coverage detected