HasSelection returns whether there are currently selected items.
()
| 669 | |
| 670 | // HasSelection returns whether there are currently selected items. |
| 671 | func (tr *Tree) HasSelection() bool { |
| 672 | return len(tr.GetSelectedNodes()) > 0 |
| 673 | } |
| 674 | |
| 675 | // Select selects this node (if not already selected). |
| 676 | // You must use this method to update global selection list. |
no test coverage detected