Skip to main content

CheckboxEnableInputsController

Purpose​

Enable other inputs if a checkbox is ticked.

Actions​

ActionPurpose
--

Targets​

TargetPurposeDefault
enablerThe checkbox that when checked will enable other inputs, and disable them when it is not checked-
enableThe input(s) that will be enabled when the enablerTarget is checked-

Classes​

ClassPurposeDefault
---

Values​

ValueTypeDescriptionDefault
clearBooleanWhether the controller should clear 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

CheckboxDisableInputsController EnableInputsController