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

NgDocBaseInput

Base class of the directives that turn a native input into a UI Kit control (ngDocInputString, ngDocInputNumber). Input wrappers and comboboxes query it to read the state of their input.

Decorators
@Directive
Generic types
T
Extends
DIControl<T, T>
DeclarationTypeScript
@Directive({ … })
export abstract class NgDocBaseInput<T> extends DIControl<T> { … }
Extended by 2
NgDocInputStringDirectiveNgDocInputNumberDirective

Members

Properties

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

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
—
elementRef: ElementRef<HTMLInputElement>
readonly overrides DIControlValueAccessor
—
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

Whether the native input has focus.

get isReadonly: boolean

Whether the native input is read-only.

get placeholder: string

Placeholder of the native input.

get value: string

Current text of the native input.

Methods

6
(): void

Focuses the native input.

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

Method is called by the forms API.

(…): void
overrides DIControl

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 abstract
Decorators
@Directive
Generic types
T
Extends
DIControl<T, T>
Scope
@ng-doc/ui-kit
Edit this page