Skip to main content

@dialstack/sdk-dev / react/src/softphone / UseDialInput

Interface: UseDialInput

Defined in: sdk/react/src/react/softphone/hooks/useDialInput.ts:4

Properties

onPasteText

TypeScript
onPasteText: (raw) => void;

Defined in: sdk/react/src/react/softphone/hooks/useDialInput.ts:15

Handle a paste: a pasted value is complete, so fully normalize it — a formatted (581) 319-5082 becomes +15813195082, so the user sees exactly what will be dialed. Pass the raw clipboard text.

Parameters

raw

string

Returns

void


onType

TypeScript
onType: (raw) => void;

Defined in: sdk/react/src/react/softphone/hooks/useDialInput.ts:9

Handle a per-keystroke value change: strip display separators only (typing stays natural; no mid-field E.164 rewrite). Pass the raw field value.

Parameters

raw

string

Returns

void