hidden fields work

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-19 17:16:51 -06:00
parent 0bcd18a1c1
commit e2c742e2ad
1 changed files with 4 additions and 10 deletions

View File

@ -27,31 +27,25 @@ func (n *OneLiner) String() string {
}
func (n *OneLiner) SetValue(s string) *OneLiner {
log.Log(INFO, "OneLiner.Set() =", s)
log.Warn("OneLiner.Set() =", s)
n.v.SetLabel(s)
return n
}
func (n *OneLiner) SetLabel(value string) *OneLiner {
log.Log(INFO, "OneLiner.SetLabel() =", value)
if n.l != nil {
n.l.SetLabel(value)
}
n.l.SetLabel(value)
return n
}
func (n *OneLiner) Enable() {
log.Log(INFO, "OneLiner.Enable()")
if n.v != nil {
n.v.Show()
}
n.v.Show()
}
func (n *OneLiner) Disable() {
log.Log(INFO, "OneLiner.Disable()")
if n.v != nil {
n.v.Hide()
}
n.v.Hide()
}
func NewOneLiner(n *gui.Node, label string) *OneLiner {