WithTitleTopLeft returns a new box with a specific Title alignment.
(b ...bool)
| 59 | |
| 60 | // WithTitleTopLeft returns a new box with a specific Title alignment. |
| 61 | func (p BoxPrinter) WithTitleTopLeft(b ...bool) *BoxPrinter { |
| 62 | b2 := internal.WithBoolean(b) |
| 63 | p.TitleTopLeft = b2 |
| 64 | p.TitleTopRight = false |
| 65 | p.TitleTopCenter = false |
| 66 | p.TitleBottomLeft = false |
| 67 | p.TitleBottomRight = false |
| 68 | p.TitleBottomCenter = false |
| 69 | return &p |
| 70 | } |
| 71 | |
| 72 | // WithTitleTopRight returns a new box with a specific Title alignment. |
| 73 | func (p BoxPrinter) WithTitleTopRight(b ...bool) *BoxPrinter { |