Phone input

Tags: forms

To be used with CountriesCollection

Flag of UNITED STATES

The country selection now starts by default at US instead of the Canada. This is set by initializing the countryCodeControl.

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