Purpose
Provide actions to allow events to Enable/disable targeted inputs.
| Action | Purpose |
|---|
enable | Remove the disabled attribute from all inputTargets |
disable | Add the disabled attribute from all inputTargets |
| Target | Purpose | Default |
|---|
input | The input(s) that will be enabled/disabled when the enable/disable actions are fired | - |
| Value | Type | Description | Default |
|---|
clear | Boolean | Whether the controller should clear the values of 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
CheckboxEnableInputsController
CheckboxDisableInputsController