The value of the NumericTextbox is of type number.
Please allow also null and undefined as valid types for the value field.
I like to force a user input into the without setting a default value.
In this case I want to set the value to null. If I do this, the type checker complains that null is not a valid type for the value field.
Example:
@Component({
selector: 'my-component',
template: '<kendo-numerictextbox [value]="__value" (valueChange)="onValueChange($event)"></kendo-numerictextbox>',
})
export class MyComponent {
public __value: number | null = null;
public onValueChange(value: number|null): void {
this.__value = value;
}
}