summaryrefslogtreecommitdiff
path: root/basicDropdown.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-10 20:04:51 -0600
committerJeff Carr <[email protected]>2024-01-10 20:04:51 -0600
commit1a31a687d6b2c5e96b26e82f3f27bdaa5363dc8b (patch)
treea971cf4a741bdac021b420e4110d117dc3ce856d /basicDropdown.go
parentd617973bfe1a8ce50a013a7827547381a4f87ad9 (diff)
enable() and disable()v0.10.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'basicDropdown.go')
-rw-r--r--basicDropdown.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/basicDropdown.go b/basicDropdown.go
index 6e8888a..78af8bd 100644
--- a/basicDropdown.go
+++ b/basicDropdown.go
@@ -48,10 +48,16 @@ func (d *BasicDropdown) Add(value string) {
return
}
+func (d *BasicDropdown) SetLabel(value string) bool {
+ if ! d.Ready() {return false}
+ log.Log(INFO, "BasicDropdown.SetLabel() =", value)
+ d.l.SetText(value)
+ return true
+}
func (d *BasicDropdown) Set(value string) bool {
if ! d.Ready() {return false}
log.Log(INFO, "BasicDropdown.Set() =", value)
- d.l.SetText(value)
+ d.d.SetText(value)
d.value = value
return true
}