SetSelectedNodes updates the selected nodes on the root node to the given list.
(sl []Treer)
| 662 | |
| 663 | // SetSelectedNodes updates the selected nodes on the root node to the given list. |
| 664 | func (tr *Tree) SetSelectedNodes(sl []Treer) { |
| 665 | if tr.root != nil { |
| 666 | tr.root.SelectedNodes = sl |
| 667 | } |
| 668 | } |
| 669 | |
| 670 | // HasSelection returns whether there are currently selected items. |
| 671 | func (tr *Tree) HasSelection() bool { |
no outgoing calls
no test coverage detected