From 2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 16 May 2019 10:49:50 -0400 Subject: Let caller pass in custom headers to compose --- lib/ui/textinput.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/ui') diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index 9d2cdc7..4a5308e 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -40,6 +40,10 @@ func (ti *TextInput) String() string { return string(ti.text) } +func (ti *TextInput) Set(value string) { + ti.text = []rune(value) +} + func (ti *TextInput) Invalidate() { ti.DoInvalidate(ti) } -- cgit 1.4.1-2-gfad0