diff --git a/oneLiner.go b/oneLiner.go index 14a1af7..164184c 100644 --- a/oneLiner.go +++ b/oneLiner.go @@ -26,6 +26,16 @@ func (n *OneLiner) String() string { return n.v.String() } +// returns a widget of the last tag that acts as a mirror +func (n *OneLiner) MirrorLabel() *gui.Node { + return gui.RawMirror(n.l) +} + +// returns a widget of the last tag that acts as a mirror +func (n *OneLiner) MirrorValue() *gui.Node { + return gui.RawMirror(n.v) +} + func (n *OneLiner) SetText(s string) *OneLiner { log.Log(GADGETS, "OneLiner.Set() =", s) n.v.SetLabel(s)