MCPcopy Create free account
hub / github.com/cogentcore/core / Browser

Method Browser

texteditor/diffbrowser/node.go:84–86  ·  view source on GitHub ↗

Browser returns the parent browser

()

Source from the content-addressed store, hash-verified

82
83// Browser returns the parent browser
84func (tn *Node) Browser() *Browser {
85 return tree.ParentByType[*Browser](tn)
86}
87
88func (tn *Node) ContextMenu(m *core.Scene) {
89 vd := core.NewButton(m).SetText("View Diffs").SetIcon(icons.Add)

Callers 2

InitMethod · 0.95
ContextMenuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected