forms/src/builder.ts
Inject this service into a Blueriq component to be able to create an Angular FormControl that is synchronized automatically with Blueriq.
Methods |
control | ||||||||||||
control(field: Field, options: ControlOptions)
|
||||||||||||
Create a new FormControl instance that automatically syncs its value changes with Field.value and vice versa. The control's disabled state is also kept in sync with Field.readonly and can be extended through ControlOptions.isDisabled. The control will have a Blueriq value validator that uses Field.validations to provide real-time validation of user input. The frequency of running the validations is controlled through ControlOptions.updateOn. Please also consult the documentation for ControlOptions for more available customization hooks.
Parameters :
Returns :
FormControl
|