DialpadProps interface
Props for Dialpad component.
Properties
dialpad |
Dialer mode for the dialpad. The dtmf mode is for sending dtmf tones and the appearence of the dialpad is changed like hiding the input box. When using dialer mode the input box is there and can be edited to change the number being dialed. |
disable |
Disables DTMF sounds when dialpad buttons are pressed. the actual tones are still sent to the call. |
dtmf |
Audio context for generating DTMF tones. If this if not provided the dialpad will create one iteslf. |
long |
Determines what kind of device that the user is on and should respect that based on interaction interfaces available to the user |
on |
on change function for text field, provides an unformatted plain text |
on |
Callback for dialpad button behavior |
on |
function to send dtmf tones on button click |
show |
flag to determine when to show/hide delete button, default true |
strings | |
styles | Styles for customizing the dialpad component |
text |
set dialpad textfield content |
Property Details
dialpadMode
Dialer mode for the dialpad. The dtmf mode is for sending dtmf tones and the appearence of the dialpad is changed like hiding the input box. When using dialer mode the input box is there and can be edited to change the number being dialed.
dialpadMode?: DialpadMode
Property Value
disableDtmfPlayback
Disables DTMF sounds when dialpad buttons are pressed. the actual tones are still sent to the call.
disableDtmfPlayback?: boolean
Property Value
boolean
dtmfAudioContext
Audio context for generating DTMF tones. If this if not provided the dialpad will create one iteslf.
dtmfAudioContext?: AudioContext
Property Value
AudioContext
longPressTrigger
Determines what kind of device that the user is on and should respect that based on interaction interfaces available to the user
longPressTrigger?: LongPressTrigger
Property Value
onChange
on change function for text field, provides an unformatted plain text
onChange?: (input: string) => void
Property Value
(input: string) => void
onClickDialpadButton
Callback for dialpad button behavior
onClickDialpadButton?: (buttonValue: string, buttonIndex: number) => void
Property Value
(buttonValue: string, buttonIndex: number) => void
onSendDtmfTone
function to send dtmf tones on button click
onSendDtmfTone?: (dtmfTone: DtmfTone) => Promise<void>
Property Value
(dtmfTone: DtmfTone) => Promise<void>
showDeleteButton
flag to determine when to show/hide delete button, default true
showDeleteButton?: boolean
Property Value
boolean
strings
styles
textFieldValue
set dialpad textfield content
textFieldValue?: string
Property Value
string