New Component: InputPhone
Posted: 27 Feb 2019, 15:40
Available in PFE 7.0. Input for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.
Based on: https://github.com/jackocnr/intl-tel-input
usage:
Based on: https://github.com/jackocnr/intl-tel-input
usage:
Code: Select all
<pe:inputPhone id="txtPhone"
initialCountry="us"
value="#{basicInputPhoneController.phoneNumber}"
formatOnDisplay="true">
<p:ajax event="countrySelect" listener="#{basicInputPhoneController.onCountrySelect}"/>
</pe:inputPhone>