MCPcopy Create free account
hub / github.com/andlabs/ui / OnClicked

Method OnClicked

button.go:52–54  ·  view source on GitHub ↗

OnClicked registers f to be run when the user clicks the Button. Only one function can be registered at a time.

(f func(*Button))

Source from the content-addressed store, hash-verified

50// OnClicked registers f to be run when the user clicks the Button.
51// Only one function can be registered at a time.
52func (b *Button) OnClicked(f func(*Button)) {
53 b.onClicked = f
54}
55
56//export pkguiDoButtonOnClicked
57func pkguiDoButtonOnClicked(bb *C.uiButton, data unsafe.Pointer) {

Callers 2

makeDataChoosersPageFunction · 0.95
setupUIFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected