MCPcopy Create free account
hub / github.com/NV404/gova / Button

Function Button

button.go:11–19  ·  view source on GitHub ↗
(label string, handler func())

Source from the content-addressed store, hash-verified

9)
10
11func Button(label string, handler func()) *viewNode {
12 return &viewNode{
13 kind: viewKindButton,
14 button: &buttonData{
15 label: label,
16 handler: handler,
17 },
18 }
19}
20
21func (n *viewNode) Style(s ButtonStyle) *viewNode {
22 if n.button != nil {

Callers 4

TestTestRenderCounterFunction · 0.85
TestTestRenderNodeCountFunction · 0.85
TestViewTreeConstructionFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestTestRenderCounterFunction · 0.68
TestTestRenderNodeCountFunction · 0.68
TestViewTreeConstructionFunction · 0.68