CheckboxEnableInputsController
Purpose
Enable other inputs if a checkbox is ticked.
| Target | Purpose | Default |
|---|
enabler | The checkbox that when checked will enable other inputs, and disable them when it is not checked | - |
enable | The input(s) that will be enabled when the enablerTarget is checked | - |
| Value | Type | Description | Default |
|---|
clear | Boolean | Whether the controller should clear the targeted inputs when they become disabled | false |
Events
| Event | When | Dispatched on | event.detail |
|---|
- | - | - | - |
Side Effects
None
How to Use
Example - preventing inputs until T&Cs are checked
See also
CheckboxDisableInputsController
EnableInputsController