NgDocInputStringDirective
Directive converts any input data or model to text
- Decorators
@Directive - Selectors
input [ngDocInputString ]- Extends
NgDocBaseInput <string>
@Directive ({ … })
export class NgDocInputStringDirective extends NgDocBaseInput <string> { … }Members
Constructor1 | |||||||||||||||||
() | — | ||||||||||||||||
Signature | |||||||||||||||||
Properties12 | |||||||||||||||||
change: (value: T | null) => void | — | ||||||||||||||||
changeDetectorRef: | — | ||||||||||||||||
changes: | Emits after the input updates its model from a user edit. | ||||||||||||||||
config?: DIControlConfig<TModel, TChildModel> | undefined | — | ||||||||||||||||
disabledValue: | — | ||||||||||||||||
document: Document | — | ||||||||||||||||
elementRef: | — | ||||||||||||||||
incomingUpdate?: ((value: T | null) => void) | undefined | — | ||||||||||||||||
model: | — | ||||||||||||||||
ngControl: | — | ||||||||||||||||
renderer: | — | ||||||||||||||||
touch: () => void | Function that should be used to make control touched. | ||||||||||||||||
Accessors7 | |||||||||||||||||
get disabled: boolean | Returns true if the control is disabled. | ||||||||||||||||
set disabled: boolean | — | ||||||||||||||||
get hasValue: boolean | 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. | ||||||||||||||||
Methods8 | |||||||||||||||||
(): void | Replays the | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | — | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | Focuses the native input. | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | — | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | — | ||||||||||||||||
Signature Returns voidOverloads
| |||||||||||||||||
(…): void | Method is called by the forms API. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||
(…): void | Updates the model of the current control. This is the main method that should be used to update the model. | ||||||||||||||||
Signature Parameters
Returns void | |||||||||||||||||
(…): void | Method is called by the forms API to write to the view when programmatic changes from model to view are requested. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||