functions
CheckboxBool| modified | Sunday 25 January 2026 |
|---|
Category: Components
File: form.go
Package: ui
1func CheckboxBool(btn *Clickable, value *bool) W
CheckboxBool creates a checkbox that automatically toggles a boolean pointer.
This is a convenience wrapper around Checkbox for simple boolean state management.
Example:
btn := &Clickable{}
enabled := false
checkbox := CheckboxBool(btn, &enabled) // Automatically toggles enabled
The boolean value is toggled in-place when the checkbox is clicked.
1{
2 btn := &Clickable{}
3 enabled := false
4 _ = CheckboxBool(btn, &enabled)
5}

This documentation is auto-generated. To update, run make docs