diff --git a/label.go b/label.go index 6324ac1..20d5f56 100644 --- a/label.go +++ b/label.go @@ -58,3 +58,8 @@ func (this *Label) OnDotChange (callback func ()) event.Cookie { func (this *Label) SetAlign (x, y tomo.Align) { this.box.SetAttr(tomo.AAlign(x, y)) } + +// SetOverflow sets the X and Y overflow of the label. +func (this *Label) SetOverflow (x, y bool) { + this.box.SetAttr(tomo.AOverflow(x, y)) +}