WithTitleBottomCenter returns a new box with a specific Title alignment.
(b ...bool)
| 119 | |
| 120 | // WithTitleBottomCenter returns a new box with a specific Title alignment. |
| 121 | func (p BoxPrinter) WithTitleBottomCenter(b ...bool) *BoxPrinter { |
| 122 | b2 := internal.WithBoolean(b) |
| 123 | p.TitleTopLeft = false |
| 124 | p.TitleTopRight = false |
| 125 | p.TitleTopCenter = false |
| 126 | p.TitleBottomLeft = false |
| 127 | p.TitleBottomRight = false |
| 128 | p.TitleBottomCenter = b2 |
| 129 | return &p |
| 130 | } |
| 131 | |
| 132 | // WithBoxStyle returns a new box with a specific box Style. |
| 133 | func (p BoxPrinter) WithBoxStyle(style *Style) *BoxPrinter { |