The Angular Input Mask or masked textbox is a component that provides an easy and reliable way to collect user input based on a standard mask. It allows you to capture phone numbers, date values, credit card numbers, and other standard format values.
Angular Input Mask component supports the standard masks listed on MSDN.
Other than the standard mask elements, any custom character also can be a mask element by defining rules for it.
Angular Input Mask elements can be regular expressions, which is useful when defining user-specific data such as IP addresses.
Angular Input Mask component allows different mask combinations based on the standard and custom masks. So, you can form different mask formats based on your application scenarios.
From the standard mask elements, form a number mask for capturing any finite-length number to get number inputs such as phone numbers and credit card numbers.
In the case of a country code or product key input, where the input string requires uppercase characters, the string mask format will enforce this.
Angular Input Mask can form any date format to get similarly formatted date values. This is helpful in getting culture-specific date values by defining the corresponding date mask.
As a form component, the captured value of a masked textbox component proceeds in the raw format when submitting the form.
You can also integrate the form validator plugin to perform any custom validation.
You can create the masked textbox component from the HTML5 tel input. It opens the numeric keypad on mobile devices, which is useful for obtaining phone numbers or any other number-only inputs.
Input Mask is also available in Blazor, React, Vue, and JavaScript frameworks. Check out the different Input Mask platforms from the links below,
Developers can customize all UI elements and control behaviors of the Angular Input Mask according to the end user’s requirements using its rich set of client-side APIs.
Easily get started with the Angular Input Mask using a few simple lines of TS codes as demonstrated below. Also explore our Angular Input Mask Example that shows you how to render and configure a Input Mask in Angular.
<ejs-maskedtextbox mask="000-000-0000"></ejs-maskedtextbox>
import { Component} from '@angular/core';
@Component({
selector: 'app-root',
// sets mask format to the MaskedTextBox
template: `
<ejs-maskedtextbox mask='000-000-0000'></ejs-maskedtextbox>
`
})
export class AppComponent {
constructor() {
}
}
The Syncfusion Angular Input Mask provides the following features:
We do not sell the Angular Input Mask separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the Angular Input Mask. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
You can find our Angular Input Mask demo here.
No, our 1,800+ components and frameworks for web, mobile, and desktop, including our Angular Input Mask, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their Input Mask component alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.