@dialstack/sdk / react / formatDisplayNumber
Function: formatDisplayNumber()
function formatDisplayNumber(value, defaultCountry?): string;
Defined in: sdk/src/react/softphone/core/view-model.ts:137
Pretty-print an E.164 / national number for display, leaving extensions and
partial input untouched. Mirrors the formatting used across the SDK
components. defaultCountry defaults to US (matching the softphone UIs).
Parameters
value
string
defaultCountry?
CountryCode = 'US'
Returns
string