Skip to content
@ng-doc/ui-kit / Class

NgDocInputNumberDirective

Directive turns a native input into a control whose model is a number

Decorators
@Directive
Selectors
input[ngDocInputNumber]
Extends
NgDocBaseInput<number>
DeclarationTypeScript
@Directive({ … })
export class NgDocInputNumberDirective extends NgDocBaseInput<number> { … }

Members

Constructor

1
()
—

Properties

12
change: (value: T | null) => void
protected inherited from DIControlValueAccessor
—
changeDetectorRef: ChangeDetectorRef
protectedreadonly inherited from DIControlValueAccessor
—
changes: Subject<void>
readonly inherited from NgDocBaseInput

Emits after the input updates its model from a user edit.

config?: DIControlConfig<TModel, TChildModel> | undefined
protectedreadonly inherited from DIControl
—
disabledValue: WritableSignal<boolean>
protectedreadonly inherited from DIControlValueAccessor
—
document: Document
protectedreadonly inherited from NgDocBaseInput
—
elementRef: ElementRef<HTMLInputElement>
readonly inherited from NgDocBaseInput
—
incomingUpdate?: ((value: T | null) => void) | undefined
protectedreadonly inherited from DIControlValueAccessor
—
model: Signal<T | null>
protectedreadonly inherited from DIControlValueAccessor
—
ngControl: NgControl | null
protectedreadonly inherited from DIControlValueAccessor
—
renderer: Renderer2
protectedreadonly inherited from DIControlValueAccessor
—
touch: () => void
protected inherited from DIControl

Function that should be used to make control touched.

Accessors

7
get disabled: boolean
inherited from DIControlValueAccessor

Returns true if the control is disabled.

set disabled: boolean
inherited from DIControlValueAccessor
—
get hasValue: boolean
inherited from DIControlValueAccessor

Returns true if the control is not empty.

get isFocused: boolean
inherited from NgDocBaseInput

Whether the native input has focus.

get isReadonly: boolean
inherited from NgDocBaseInput

Whether the native input is read-only.

get placeholder: string
inherited from NgDocBaseInput

Placeholder of the native input.

get value: string
inherited from NgDocBaseInput

Current text of the native input.

Methods

8
(): void
protected
—
(): void
inherited from NgDocBaseInput

Focuses the native input.

(): void
protected
—
(): void
inherited from DIControl
—
(…): void
inherited from DIControl

Method is called by the forms API.

(…): void
inherited from NgDocBaseInput

Updates the model of the current control. This is the main method that should be used to update the model.

(…): void
inherited from DIControl

Method is called by the forms API to write to the view when programmatic changes from model to view are requested.

Symbol
Kind
Class
Decorators
@Directive
Selectors
input[ngDocInputNumber]
Extends
NgDocBaseInput<number>
Scope
@ng-doc/ui-kit
Edit this page