Phone input

Tags: forms

To be used with CountriesCollection

Phone input with no country priority set. The countries will purely be selected based on phone code length.

Flag of UNITED KINGDOM

Phone input with country priority set to US, CA, NZ, AU, GB. US and CA have the same country phone code, but CA will be prioritized in the selection list since it is first in the countryPriority array.

Flag of CANADA
Inputs
formGroup : FormGroup<{ countryCode: FormControl<any>; phoneNumber: FormControl<string>; displayPhoneNumber: FormControl<string>; }>
autoFocus ?: any = AutoFocusOption.NONE

Allows the input to auto focus

countriesOptions ?: readonly Country[] = []
countryPriority ?: string[] = [ CountryCode.US, CountryCode.CA, CountryCode.NZ, CountryCode.AU, CountryCode.GB, ]

Priority countries to show for country select