MaskedTextBoxComponent
Represents the Kendo UI MaskedTextBox component for Angular.
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<kendo-maskedtextbox
[mask]="mask"
[value]="value">
</kendo-maskedtextbox>
`
})
export class AppComponent {
public value: string = "9580128055807792";
public mask: string = "0000-0000-0000-0000";
}
Selector
kendo-maskedtextbox
Export Name
Accessible in templates as #kendoMaskedTextBoxInstance="kendoMaskedTextBox"
Inputs
Name | Type | Default | Description |
---|---|---|---|
disabled |
|
|
Disables the MaskedTextBox when you set it to |
fillMode |
|
|
Sets the background and border style of the MaskedTextBox (see example). |
includeLiterals |
|
|
When |
inputAttributes |
|
Sets HTML attributes for the inner input element. You cannot change attributes that are essential for component functionality. | |
mask |
|
Sets the mask pattern for the MaskedTextBox (see example).
If you do not set a mask, the component acts as a standard If the mask allows spaces, set the | |
maskOnFocus |
|
Shows the mask on focus when the value is empty. | |
maskValidation |
|
|
Enables the built-in mask validator when you set it to |
prompt |
|
|
Sets the prompt character for the masked value. |
promptPlaceholder |
|
|
Sets the character that represents an empty position in the raw value. |
readonly |
|
|
When |
rounded |
|
|
Sets the border radius of the MaskedTextBox (see example). |
rules |
|
Sets the RegExp-based mask validation rules (see example). | |
size |
|
|
Sets the padding size of the MaskedTextBox input element (see example). |
tabindex |
|
Sets the | |
title |
|
Sets the | |
value |
|
Sets the value of the MaskedTextBox. |
Fields
Name | Type | Default | Description |
---|---|---|---|
input |
|
Returns the |
Events
Name | Type | Description |
---|---|---|
inputBlur |
|
Fires when the input element gets blurred. |
inputFocus |
|
Fires when the input element gets focused. |
blur |
|
Fires when the MaskedTextBox gets blurred. To subscribe programmatically, use the |
focus |
|
Fires when the MaskedTextBox gets focused. To subscribe programmatically, use the |
valueChange |
|
Fires when the value changes. |
Methods
blur |
---|
Blurs the MaskedTextBox. |
focus |
---|
Focuses the MaskedTextBox. ts
|