Hello may I ask, how can I convert the date and time format after I select date and time?
like 12-hour format (12:01 AM) for time and YYYY-MM-D for date
Lastly, how can I add validation messages to a reactive textfield v7.0.0+
You can add a ControlValueAccessor to the reactive text field with the format.
In the Wiki you have an example of how to do that.
To add a validation message you just supply the validationMessages callback method in ReactiveTextField and return a Map with the messages:
ReactiveTextField(formControlName:'email',validationMessages:(control)=>{ValidationMessage.required:'The email must not be empty',ValidationMessage.email:'The email value must be a valid email'},),
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello may I ask, how can I convert the date and time format after I select date and time?
like 12-hour format (12:01 AM) for time and YYYY-MM-D for date
Lastly, how can I add validation messages to a reactive textfield v7.0.0+
Hi John Lester,
You can add a ControlValueAccessor to the reactive text field with the format.
In the Wiki you have an example of how to do that.
To add a validation message you just supply the validationMessages callback method in ReactiveTextField and return a Map with the messages: