aboutsummaryrefslogtreecommitdiff
path: root/lib/ui
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-16 10:49:50 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-16 10:49:50 -0400
commit2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a (patch)
tree2845d2e611a4abd2e6561c31b522178176c75f82 /lib/ui
parentb0bf09b98fc038c1bc9921d568c06260b7448a15 (diff)
Let caller pass in custom headers to compose
Diffstat (limited to 'lib/ui')
-rw-r--r--lib/ui/textinput.go4
1 files changed, 4 insertions, 0 deletions
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)
}