SetText sets this edit text
(text string)
| 81 | |
| 82 | // SetText sets this edit text |
| 83 | func (ed *Edit) SetText(text string) *Edit { |
| 84 | |
| 85 | // Remove new lines from text |
| 86 | ed.text = strings.Replace(text, "\n", "", -1) |
| 87 | ed.update() |
| 88 | return ed |
| 89 | } |
| 90 | |
| 91 | // Text returns the current edited text |
| 92 | func (ed *Edit) Text() string { |
no test coverage detected