MCPcopy
hub / github.com/docker/docker-agent / AddTitle

Method AddTitle

pkg/tui/dialog/base.go:207–210  ·  view source on GitHub ↗

AddTitle adds a styled title to the dialog.

(title string)

Source from the content-addressed store, hash-verified

205
206// AddTitle adds a styled title to the dialog.
207func (dc *Content) AddTitle(title string) *Content {
208 dc.parts = append(dc.parts, RenderTitle(title, dc.width, styles.DialogTitleStyle))
209 return dc
210}
211
212// AddSeparator adds a horizontal separator line.
213func (dc *Content) AddSeparator() *Content {

Callers 13

ViewMethod · 0.95
ViewMethod · 0.95
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80

Calls 1

RenderTitleFunction · 0.85

Tested by

no test coverage detected