Adds a validator function to the control. Returns an error object, or null if there are no errors. to the control.
The validator function to add.
A function that removes the validator.
Runs a callback when the the control's show invalid state changes.
A function that removes the callback.
Runs a callback when the the control's validity changes.
A callback that is invoked with the valid state.
A function that removes the callback.
An API of methods and properties for forms on a single value control.