WithTitleBottomRight returns a new box with a specific Title alignment.
(b ...bool)
| 107 | |
| 108 | // WithTitleBottomRight returns a new box with a specific Title alignment. |
| 109 | func (p BoxPrinter) WithTitleBottomRight(b ...bool) *BoxPrinter { |
| 110 | b2 := internal.WithBoolean(b) |
| 111 | p.TitleTopLeft = false |
| 112 | p.TitleTopRight = false |
| 113 | p.TitleTopCenter = false |
| 114 | p.TitleBottomLeft = false |
| 115 | p.TitleBottomRight = b2 |
| 116 | p.TitleBottomCenter = false |
| 117 | return &p |
| 118 | } |
| 119 | |
| 120 | // WithTitleBottomCenter returns a new box with a specific Title alignment. |
| 121 | func (p BoxPrinter) WithTitleBottomCenter(b ...bool) *BoxPrinter { |