rootIsReadOnly returns the ReadOnly status of the root node, which is what controls the functional inactivity of the tree if individual nodes are ReadOnly that only affects display typically.
()
| 493 | // which is what controls the functional inactivity of the tree |
| 494 | // if individual nodes are ReadOnly that only affects display typically. |
| 495 | func (tr *Tree) rootIsReadOnly() bool { |
| 496 | if tr.root == nil { |
| 497 | return true |
| 498 | } |
| 499 | return tr.root.IsReadOnly() |
| 500 | } |
| 501 | |
| 502 | func (tr *Tree) Style() { |
| 503 | if !tr.HasChildren() { |
no test coverage detected