sw-ui-dialpad
sw-ui-dialpad
Presentational 12-key telephone keypad (0-9, *, #) for entering phone numbers, sending DTMF tones, or capturing free-text destinations.
Pure UI primitive — no call logic, no SDK coupling. Use
<sw-call-dialpad> for the SDK-aware version that automatically forwards
digits to an active call.
Each key shows the digit plus the standard ITU-T E.161 letter mapping (2 → ABC, 3 → DEF, …). Two long-press shortcuts are built in:
- Long-press
0→ inserts+(international prefix). - Long-press the backspace button → clears the entire buffer.
Set allow-text to let users type into the display field directly
(useful for SIP URIs or destination addresses that aren’t strictly
digits). Set show-call-button to render an inline “Call” button.
Class: SwUiDialpad · Module: packages/web-components/src/components/UI/controls/sw-ui-dialpad.ts
class: SwUiDialpad, sw-ui-dialpad
Fields
showCallButton
Whether to display the call button below the keypad.
allowText
Allow free-text input in the display field (e.g., SIP URIs, vanity letters). Keypad buttons still append DTMF digits.
placeholder
Placeholder text shown in the digit display input.