WithTitleBottomLeft returns a new box with a specific Title alignment.
(b ...bool)
| 95 | |
| 96 | // WithTitleBottomLeft returns a new box with a specific Title alignment. |
| 97 | func (p BoxPrinter) WithTitleBottomLeft(b ...bool) *BoxPrinter { |
| 98 | b2 := internal.WithBoolean(b) |
| 99 | p.TitleTopLeft = false |
| 100 | p.TitleTopRight = false |
| 101 | p.TitleTopCenter = false |
| 102 | p.TitleBottomLeft = b2 |
| 103 | p.TitleBottomRight = false |
| 104 | p.TitleBottomCenter = false |
| 105 | return &p |
| 106 | } |
| 107 | |
| 108 | // WithTitleBottomRight returns a new box with a specific Title alignment. |
| 109 | func (p BoxPrinter) WithTitleBottomRight(b ...bool) *BoxPrinter { |