formatCNICInput
function formatCNICInput(value): string;Defined in: input.ts:28
Formats a CNIC as the user types: 35202-1234567-1.
Keeps up to 13 digits (Urdu digits are converted) and inserts the dashes as the groups fill. Other characters are dropped.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value |
string |
Current input value |
Returns
Section titled “Returns”string
Value to show in the input