Skip to main content

EnableInputsController

Purpose

Provide actions to allow events to Enable/disable targeted inputs.

Actions

ActionPurpose
enableRemove the disabled attribute from all inputTargets
disableAdd the disabled attribute from all inputTargets

Targets

TargetPurposeDefault
inputThe input(s) that will be enabled/disabled when the enable/disable actions are fired-

Classes

ClassPurposeDefault
---

Values

ValueTypeDescriptionDefault
clearBooleanWhether the controller should clear the values of the targeted inputs when they become disabledfalse

Events

EventWhenDispatched onevent.detail
----

Side Effects

None

How to Use

Example - preventing inputs until T&Cs are checked

See also

CheckboxEnableInputsController CheckboxDisableInputsController