Select selects this node (if not already selected). You must use this method to update global selection list.
()
| 675 | // Select selects this node (if not already selected). |
| 676 | // You must use this method to update global selection list. |
| 677 | func (tr *Tree) Select() { |
| 678 | if !tr.StateIs(states.Selected) { |
| 679 | tr.SetSelected(true) |
| 680 | tr.Style() |
| 681 | sl := tr.GetSelectedNodes() |
| 682 | sl = append(sl, tr.This.(Treer)) |
| 683 | tr.SetSelectedNodes(sl) |
| 684 | tr.NeedsRender() |
| 685 | } |
| 686 | } |
| 687 | |
| 688 | // Unselect unselects this node (if selected). |
| 689 | // You must use this method to update global selection list. |
no test coverage detected