MCPcopy
hub / github.com/pterm/pterm / WithTitleBottomRight

Method WithTitleBottomRight

box_printer.go:109–118  ·  view source on GitHub ↗

WithTitleBottomRight returns a new box with a specific Title alignment.

(b ...bool)

Source from the content-addressed store, hash-verified

107
108// WithTitleBottomRight returns a new box with a specific Title alignment.
109func (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.
121func (p BoxPrinter) WithTitleBottomCenter(b ...bool) *BoxPrinter {

Callers 5

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

WithBooleanFunction · 0.92