Browse Source

feat(box): Add `GetBorder`

tablepad
Andreas Bieber 2 years ago
parent
commit
2eac84df0b
  1. 8
      box.go

8
box.go

@ -313,6 +313,14 @@ func (b *Box) SetBackgroundTransparent(transparent bool) *Box {
return b
}
// GetBorder returns a value indicating whether the box have a border
// or not.
func (b *Box) GetBorder() bool {
b.l.RLock()
defer b.l.RUnlock()
return b.border
}
// SetBorder sets the flag indicating whether or not the box should have a
// border.
func (b *Box) SetBorder(show bool) *Box {

Loading…
Cancel
Save