MCPcopy
hub / github.com/basecamp/once / NewCheckboxField

Function NewCheckboxField

internal/ui/form.go:118–120  ·  view source on GitHub ↗
(label string, checked bool)

Source from the content-addressed store, hash-verified

116}
117
118func NewCheckboxField(label string, checked bool) *CheckboxField {
119 return &CheckboxField{label: label, checked: checked}
120}
121
122func (f *CheckboxField) Checked() bool {
123 return f.checked

Callers 6

NewSettingsFormBackupsFunction · 0.85
TestCheckboxField_ToggleFunction · 0.85
TestCheckboxField_RenderFunction · 0.85
NewSettingsFormUpdatesFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestCheckboxField_ToggleFunction · 0.68
TestCheckboxField_RenderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…