summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-11 00:56:20 -0600
committerJeff Carr <[email protected]>2024-01-11 00:56:20 -0600
commitb6d0521996572f0eebd6ff039e80a29fcaeb853b (patch)
tree0f354c36450c23b1f1d261c6a96033bb4401dcc6
parent1a31a687d6b2c5e96b26e82f3f27bdaa5363dc8b (diff)
add SetTitle()v0.10.2
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--basicCombobox.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/basicCombobox.go b/basicCombobox.go
index 01b1f6d..4ca27bc 100644
--- a/basicCombobox.go
+++ b/basicCombobox.go
@@ -58,6 +58,12 @@ func (d *BasicCombobox) Disable() {
d.d.Disable()
}
+func (d *BasicCombobox) SetTitle(name string) {
+ if d == nil {return}
+ if d.d == nil {return}
+ d.d.SetText(name)
+}
+
func (d *BasicCombobox) Add(value any) {
if ! d.Ready() {return}
log.Log(INFO, "BasicCombobox.Add() =", value)