MCPcopy
hub / github.com/pterm/pterm / WithTitleBottomLeft

Method WithTitleBottomLeft

box_printer.go:97–106  ·  view source on GitHub ↗

WithTitleBottomLeft returns a new box with a specific Title alignment.

(b ...bool)

Source from the content-addressed store, hash-verified

95
96// WithTitleBottomLeft returns a new box with a specific Title alignment.
97func (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.
109func (p BoxPrinter) WithTitleBottomRight(b ...bool) *BoxPrinter {

Callers 4

mainFunction · 0.80
mainFunction · 0.80

Calls 1

WithBooleanFunction · 0.92