Skip to content

VDialPad

Base class for dial-pad

Props

NameTypeDescription
autofocusbooleanIndicates that an element should be focused on page load, or when the Dialog that it is part of is displayed. When no-input attribute is specified, it will be the first digit button. Otherwise, the text field will be focused.`
call-activebooleanControls the active state of the call
call-button-labelstringControls the call button label
delete-aria-labelstringThe aria-label for the delete button
disabledbooleanControls the disabled state of the dial pad
end-call-button-labelstringControls the end call button label
helper-textstringControls the helper text displayed below the phone input element
no-callbooleanRemoves the call button and functionality
no-inputbooleanRemoves the phone input element
patternstringRegular expression to validate the value of the input element
pendingbooleanControls the pending state
placeholderstringIndicates the placeholder's text.
valuestringValue of the phone input element

Events

NameEvent TypeDescription
blurCustomEvent<undefined>Emitted when the text field loses focus
changeCustomEvent<undefined>Emitted when the text field value changes
clickMouseEventFires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
dialCustomEvent<undefined>Emitted when the call button is clicked
end-callCustomEvent<undefined>Emitted when the end call button is clicked
focusCustomEvent<undefined>Emitted when the text field receives focus
inputCustomEvent<undefined>Emitted when the text field value changes
keydownKeyboardEventFires when a key is pressed.
keypad-clickCustomEvent<HTMLElement>Emitted when a digit button is clicked
keyupKeyboardEventFires when a key is released.

Methods

NameTypeDescription
focus() => voidMoves focus into the Dial Pad. If no-input attribute is specified, it will be the first digit button. Otherwise, the input field will be focused.
valueChanged(_oldValue: string,newValue: string) => void