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

Method SetWidgetValue

core/funcbutton.go:134–137  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

132}
133
134func (fb *FuncButton) SetWidgetValue(value any) error {
135 fb.SetFunc(reflectx.Underlying(reflect.ValueOf(value)).Interface())
136 return nil
137}
138
139func (fb *FuncButton) OnBind(value any, tags reflect.StructTag) {
140 // If someone is viewing a function value, there is a good chance

Callers

nothing calls this directly

Calls 2

SetFuncMethod · 0.95
UnderlyingFunction · 0.92

Tested by

no test coverage detected