Checkbox
This node renders a checkbox input.
The Checkbox node allows users to toggle a boolean state.
The Checkbox node displays a standard checkbox with an optional label. It outputs its current state (true or false) and a signal when it changes.
General
| Data | Description |
|---|
| Checked | The current state (true/false). Setting this input programmatically updates the checkbox. |
| Label | Text to display next to the checkbox. |
Actions
| Signal | Description |
|---|
| Check | Sets the state to true. |
| Uncheck | Sets the state to false. |
| Toggle | Flips the current state. |
Outputs
States
| Data | Description |
|---|
| Checked | Boolean. The current state of the checkbox. |
Events
| Signal | Description |
|---|
| Changed | Triggered whenever the user toggles the checkbox or it is updated programmatically. |
Usage
Terms of Service
- Add a Checkbox.
- Set Label to "I agree to terms".
- Connect Checked output to the Enabled input of a "Submit" button.
Settings
- Add a Checkbox for "Dark Mode".
- Connect Changed to a Set Variable node to store the preference.
Detailed Behavior
- Two-Way Binding: You can read the
Checked output and write to the Checked input.
- Visuals: Custom styling for the box, checkmark, and label is available in the properties panel.
Troubleshooting
- Not Updating: If you force a value into the
Checked input continuously (e.g., from a constant), the user might not be able to toggle it. Use a Variable node to store the state if you need read/write access.