MCPcopy
hub / github.com/derailed/k9s / titleCell

Method titleCell

internal/view/help.go:393–401  ·  view source on GitHub ↗
(title string)

Source from the content-addressed store, hash-verified

391}
392
393func (h *Help) titleCell(title string) *tview.TableCell {
394 c := tview.NewTableCell(title)
395 c.SetTextColor(h.Styles().K9s.Help.SectionColor.Color())
396 c.SetAttributes(tcell.AttrBold)
397 c.SetExpansion(1)
398 c.SetAlign(tview.AlignLeft)
399
400 return c
401}
402
403func padCellWithRef(s string, width int, ref any) *tview.TableCell {
404 return padCell(s, width).SetReference(ref)

Callers 1

addSectionMethod · 0.95

Calls 2

ColorMethod · 0.80
StylesMethod · 0.80

Tested by

no test coverage detected