The Angular Numeric Textbox component is a quick replacement of the number-type HTML input element. It’s used to get number inputs from users. It has several out-of-the-box features such as number format support, precision control, and spin buttons.
The Numeric Textbox supports any custom format. A custom format allows you to place any symbol or text as a prefix or suffix to the input number.
You can control the precision of the input number value. And you can limit the precision to any length while the value is being typed.
Spin buttons provide a flexible option for interacting with the Numeric Textbox. So you can increase or decrease the input value easily.
You can customize the appearance of the spin buttons. And you can hide the buttons from the component if they are not needed.
Increment or decrement a value based on a predefined step value. This can help users input large values.
The Numeric Textbox has min-max range validation support. This prevents your users from entering out-of-range values.
You can integrate the form validator plugin to perform any custom validation.
The Numeric Textbox component can be extended from the HTML5 tel input. This opens the numeric keypad on mobile devices, which makes it easy to enter numeric values.
The Angular Numeric Textbox component comes with built-in globalization support. It adapts to any culture through simple settings.
The component supports right-to-left (RTL) direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.
Numeric Textbox is also available in Blazor, React, Vue, and JavaScript frameworks. Check out the different Numeric Textbox platforms from the links below,
The Angular Numeric Textbox component has a rich set of developer-friendly APIs. So you can handle all UI elements and behaviors of the control to provide the best experience to your end users.
Easily get started with the Angular Numeric Textbox using a few simple lines of HTML and TS code example as demonstrated below. Also explore our Angular Numeric Textbox Example that shows you how to render and configure a Numeric Textbox in Angular.
<div class="control-section">
<div class="content-wrapper">
<div>
<div class="control-label">Numeric TextBox</div>
<!-- Render Numeric Textbox -->
<ejs-numerictextbox value="10"></ejs-numerictextbox>
</div>
</div>
</div>
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
// specifies the template string for the NumericTextBox component
template: `<ejs-numerictextbox value='10'></ejs-numerictextbox>`
})
export class AppComponent { }
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.