checkPhoneInput
function checkPhoneInput(value): InputState;Defined in: input.ts:119
Checks a Pakistani mobile number while the user is typing. The 03XX
prefix is checked as soon as it is complete. See InputState.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value |
string |
Returns
Section titled “Returns”Example
Section titled “Example”checkPhoneInput('0300 12'); // 'incomplete'checkPhoneInput('0360'); // 'invalid' (prefix not allocated)checkPhoneInput('03001234567'); // 'valid'