CanOpen returns true if the node is able to open. By default it checks HasChildren(), but could check other properties to perform lazy building of the tree.
()
| 1112 | // By default it checks HasChildren(), but could check other properties |
| 1113 | // to perform lazy building of the tree. |
| 1114 | func (tr *Tree) CanOpen() bool { |
| 1115 | return tr.HasChildren() |
| 1116 | } |
| 1117 | |
| 1118 | // Open opens the given node and updates the tree accordingly |
| 1119 | // (if it is not already opened). It calls OnOpen in the [Treer] |
nothing calls this directly
no test coverage detected