NgDocTypeAliasControlComponent
The playground control of union type aliases: a select that shows the value and whether it is the default. The inspector shows the value type under the input's name.
- Decorators
@Component - Selectors
ng-doc-type-alias-control - Generic types
T- Extends
DIControl<T, T>- Implements
NgDocTypeControl <T>
@Component ({ … })
export class NgDocTypeAliasControlComponent <T>
extends DIControl<T>
implements NgDocTypeControl <T> { … }Members
Constructor1 | |||||||||||||||||
() | — | ||||||||||||||||
Signature | |||||||||||||||||
Properties13 | |||||||||||||||||
change: (value: T | null) => void | — | ||||||||||||||||
changeDetectorRef: | — | ||||||||||||||||
config?: DIControlConfig<TModel, TChildModel> | undefined | — | ||||||||||||||||
default: | Default value of the input; clearing the selection returns to it. | ||||||||||||||||
disabledValue: | — | ||||||||||||||||
elementRef: | — | ||||||||||||||||
incomingUpdate?: ((value: T | null) => void) | undefined | — | ||||||||||||||||
isManual: | Whether | ||||||||||||||||
model: | — | ||||||||||||||||
ngControl: | — | ||||||||||||||||
options: | Values the input accepts: literal source text, or plain values when | ||||||||||||||||
renderer: | — | ||||||||||||||||
touch: () => void | Function that should be used to make control touched. | ||||||||||||||||
Accessors3 | |||||||||||||||||
get disabled: boolean | Returns true if the control is disabled. | ||||||||||||||||
set disabled: boolean | — | ||||||||||||||||
get hasValue: boolean | Returns true if the control is not empty. | ||||||||||||||||
Methods6 | |||||||||||||||||
(…): void | — | ||||||||||||||||
Signature Parameters
Returns void | |||||||||||||||||
(): void | — | ||||||||||||||||
Signature Returns voidOverloads
| |||||||||||||||||
(…): void | Method is called by the forms API. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||
(…): string | — | ||||||||||||||||
Signature Parameters
Returns string | |||||||||||||||||
(…): void | Updates the model of the current control. This is the main method that should be used to update the model. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||
(…): 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
| |||||||||||||||||