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

Method Toggle

testing.go:239–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237func (r ToggleResult) Exists() bool { return r.found }
238
239func (r ToggleResult) Toggle() {
240 if r.onChange != nil {
241 r.onChange(!r.Checked)
242 }
243 if r.tree != nil {
244 r.tree.Rerender()
245 }
246}
247
248type TextFieldResult struct {
249 Placeholder string

Callers 4

TestTestRenderToggleFunction · 0.80
main.goFile · 0.80
todoRowFunction · 0.80
main.goFile · 0.80

Calls 1

RerenderMethod · 0.80

Tested by 1

TestTestRenderToggleFunction · 0.64