summaryrefslogtreecommitdiff
path: root/basicCombobox.go
diff options
context:
space:
mode:
Diffstat (limited to 'basicCombobox.go')
-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)