Readonly
contextReadonly
targetStatic
blessingsStatic
outletsStatic
targetsStatic
valuesStatic
shouldApplies a value from the controlled element to the targeted
elements. Calls to this method are debounced based on the
controller's debounceValue
.
Applying of the value to the targets can be done with a delay,
based on the controller's delayValue
.
Optional
event: Event & { params?: { apply?: string } }Allows for targeted elements to determine, via preventing the default event, whether this sync controller should be disabled.
Clears the value of the targeted elements.
Dispatches an event to all target elements so that they can be notified that a sync has started, allowing them to disable the sync by preventing default.
Simple method to dispatch a ping event to the targeted elements.
Returns the non-default prevented elements that are targets of this sync controller. Additionally allows this processing to enable or disable this controller instance's sync behavior.
Static
after
Adds ability to sync the value or interactions with one input with one or more targeted other inputs.
Example