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.
Optional
typeAttribute: stringThe type attribute with which the form control is associated.
A function that removes the validator.
Gives the ID of the element that is showing a validation message for the control. Returns the ID for the element that is showing a validation message for the control. Returns undefined if there is no message shown.
The id of the element that is showing a validation message for the control or returns undefined if there is no message being shown.
Returns whether the control is dirty. A control is dirty after the user has changed the value of the control.
Optional
typeAttribute: stringThe type attribute with which the form control is associated.
A boolean value describing if the control is dirty.
Returns whether the control is touched. A control is touched after the user has triggered a blur event on it.
Optional
typeAttribute: stringThe type attribute with which the form control is associated.
A boolean value describing if the control has been touched.
Runs a callback when the the control's show invalid state changes.
Optional
typeAttribute: stringThe type attribute with which the form control is associated.
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.
Optional
typeAttribute: stringThe type attribute with which the form control is associated.
A function that removes the callback.
Returns whether the control should show itself as being invalid.
Optional
typeAttribute: stringThe type attribute with which the form control is associated.
A boolean value indicating whether the control should show itself as being invalid.
An API of methods and properties for forms on a multiple value control.