All Components

NumericTextBoxComponent

Represents the Kendo UI NumericTextBox component for Angular.

Selector

kendo-numerictextbox

Export Name

Accessible in templates as #kendoNumericTextBoxInstance="kendoNumericTextBox"

Inputs

autoCorrect boolean

Specifies whether the value will be auto-corrected based on the minimum and maximum values
(see example).

decimals number

Specifies the number of decimals that the user can enter when the input is focused
(see example).

disabled boolean

Determines whether the NumericTextBox is disabled (see example).

max number

Specifies the greatest value that is valid
(see example).

min number

Specifies the smallest value that is valid
(see example).

placeholder string

Specifies the input placeholder.

rangeValidation boolean

Determines whether the built-in minimum or maximum validators are enforced when a form is validated.

The 4.2.0 Angular version introduces the min and max validation directives. As a result, even if you set rangeValidation
to false, the built-in Angular validators will be executed.

readonly boolean

Determines whether the NumericTextBox is in its read-only state (see example).

spinners boolean

Specifies whether the Up and Down spin buttons will be rendered
(see example).

step number

Specifies the value that is used to increment or decrement the component value
(see example).

tabindex number

Specifies the tabindex of the component.

title string

Sets the title of the input element of the NumericTextBox.

value number

Specifies the value of the NumericTextBox
(see example).

format string | NumberFormatOptions | null | undefined

Specifies the number format which is used when the NumericTextBox is not focused
(see example).
If format is set to null or undefined, the default format will be used.

Events

blur EventEmitter

Fires each time the input element gets blurred.

focus EventEmitter

Fires each time the user focuses the input element.

valueChange EventEmitter

Fires each time the user selects a new value.

Methods

blur

Blurs the NumericTextBox.

focus

Focuses the NumericTextBox.

@Component({
selector: 'my-app',
template: `
 <button (click)="numerictextbox.focus()">Focus NumericTextBox</button>
 <kendo-numerictextbox #numerictextbox></kendo-numerictextbox>
`
})
class AppComponent { }
In this article