hint is an optional attribute. It is a Promise that resolves to the hint string or null.
A method that validates the value. The function returns a Promise that resolves to void if the validation passes or a Promise that rejects with an error if it fails. The error will be shown on the component.
It is recommended that you show the value you are validating in the error message because if the async operation takes a while, the user could be typing in a new value when the error message comes back and might be confused what value the error is for.
If you need to format the value for the error message, you can use e.g. for number
new NumberConverter.IntlNumberConverter(converterOption)to get the converter instance, then call converter.format(value);
Name Type Description
any to be validated
Returns:A Promise that resolves to nothing if validation passes or rejects with an Error if validation fails.