Text returns the contents of the label.
()
| 149 | |
| 150 | // Text returns the contents of the label. |
| 151 | func (l *Selectable) Text() string { |
| 152 | l.initialize() |
| 153 | l.scratch = l.text.Text(l.scratch) |
| 154 | return string(l.scratch) |
| 155 | } |
| 156 | |
| 157 | // SetText updates the text to s if it does not already contain s. Updating the |
| 158 | // text will clear the selection unless the selectable already contains s. |