Constructs an instance of UFFormController
Data structure to manage
Optional
anOptions: Partial<UFFormControllerOptions>Configuration options
Current auto update state.
True=validate and update error visuals with every change, false=don't update
Return data used for the bindings.
data instance used to bind input fields to
Adds (or replace) binding between input element and data property.
Name of property to bind to
Element to bind to
An object with properties that determines how to show the visual state
When true, update the value of the input value with the property value.
Removes listeners, other resource links and all bindings.
Reset the controller; hide all error visuals and no longer auto update with every change to a field.
Removes binding to a data property.
Property name
Checks if all bindings are valid. If there is an invalid binding and auto update is true start validating all bindings and update error visuals with every change.
True=all bindings are valid, false=one or more bindings are invalid.
UFFormController can be used to bind properties from an object implementing
UFModel
to form elements. It takes care of validation and visual updates.