diff options
| author | Jeff Carr <[email protected]> | 2024-01-11 00:56:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-11 00:56:20 -0600 |
| commit | b6d0521996572f0eebd6ff039e80a29fcaeb853b (patch) | |
| tree | 0f354c36450c23b1f1d261c6a96033bb4401dcc6 /basicCombobox.go | |
| parent | 1a31a687d6b2c5e96b26e82f3f27bdaa5363dc8b (diff) | |
add SetTitle()v0.10.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'basicCombobox.go')
| -rw-r--r-- | basicCombobox.go | 6 |
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) |
