NumericTextBoxComponent
Represents the Kendo UI NumericTextBox component for Angular.
Use this component to allow users to input numeric values.
<kendo-numerictextbox [(ngModel)]="value"></kendo-numerictextbox>
Selector
kendo-numerictextbox
Export Name
Accessible in templates as #kendoNumericTextBoxInstance="kendoNumericTextBox"
Inputs
Name | Type | Default | Description |
---|---|---|---|
autoCorrect |
|
When | |
changeValueOnScroll |
|
|
When |
decimals |
|
Specifies the number of decimals the user can enter when the input is focused (see example). | |
disabled |
|
|
When |
fillMode |
|
|
Sets the background and border styles of the NumericTextBox (see example). |
inputAttributes |
|
Sets HTML attributes on the inner input element. The component ignores attributes that are essential for its functionality. | |
max |
|
Sets the maximum valid value (see example). | |
maxlength |
|
Sets the maximum number of characters the user can type or paste in the input.
The locale-specific decimal separator and negative sign ( | |
min |
|
Sets the minimum valid value (see example). | |
placeholder |
|
Sets the input placeholder. | |
rangeValidation |
|
|
Enforces the built-in minimum and maximum validators during form validation. |
readonly |
|
|
When |
rounded |
|
|
Sets the border radius of the NumericTextBox (see example). |
selectOnFocus |
|
|
When |
size |
|
|
Sets the padding of the internal input element (see example). |
spinners |
|
|
When |
step |
|
|
Specifies the value used to increment or decrement the component value (see example). |
tabindex |
|
Sets the | |
title |
|
Sets the | |
value |
|
Sets the value of the NumericTextBox (see example). |
Fields
Name | Type | Default | Description |
---|---|---|---|
format |
|
Specifies the number format used when the NumericTextBox is not focused (see example).
If |
Events
Name | Type | Description |
---|---|---|
inputBlur |
|
Fires when the input element gets blurred. |
inputFocus |
|
Fires when the input element is focused. |
blur |
|
Fires when the |
focus |
|
Fires when the NumericTextBox element is focused (see example). |
valueChange |
|
Fires when the user selects a new value (see example). |
Methods
blur |
---|
Blurs the NumericTextBox. |
focus |
---|
Focuses the NumericTextBox. |
notifyValueChange |
---|
Notifies the NumericTextBoxComponent that the input value should be changed. Can be used to update the input after setting the component properties directly. |