MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / NewNodeDetails

Function NewNodeDetails

internal/ui/components/node_details.go:31–42  ·  view source on GitHub ↗

NewNodeDetails creates a new node details panel.

()

Source from the content-addressed store, hash-verified

29
30// NewNodeDetails creates a new node details panel.
31func NewNodeDetails() *NodeDetails {
32 table := tview.NewTable()
33 table.SetBorders(false)
34 table.SetTitle(" Node Details ")
35 table.SetBorder(true)
36 table.Clear()
37 table.SetCell(0, 0, tview.NewTableCell("Select a node").SetTextColor(theme.Colors.Primary))
38
39 return &NodeDetails{
40 Table: table,
41 }
42}
43
44// Clear wraps the table Clear method to satisfy the interface.
45func (nd *NodeDetails) Clear() *tview.Table {

Callers 1

NewAppFunction · 0.85

Calls 3

SetTextColorMethod · 0.80
SetTitleMethod · 0.65
ClearMethod · 0.65

Tested by

no test coverage detected