NgDocClearControlComponent
Button that clears the value of its host control and of the input of the surrounding input host. It is shown only while there is a value to clear.
- Decorators
@Component - Selectors
ng-doc-clear-control - Generic types
T- Extends
DIControl<T, T>- Implements
AfterContentInit
@Component ({ … })
export class NgDocClearControlComponent <T>
extends DIControl<T>
implements AfterContentInit { … }Members
Constructor1 | |||||||||||||||||
() | — | ||||||||||||||||
Signature | |||||||||||||||||
Properties11 | |||||||||||||||||
change: (value: T | null) => void | — | ||||||||||||||||
changeDetectorRef: | — | ||||||||||||||||
config?: DIControlConfig<TModel, TChildModel> | undefined | — | ||||||||||||||||
disabledValue: | — | ||||||||||||||||
elementRef: | — | ||||||||||||||||
incomingUpdate?: ((value: T | null) => void) | undefined | — | ||||||||||||||||
inputHost: | — | ||||||||||||||||
model: | — | ||||||||||||||||
ngControl: | — | ||||||||||||||||
renderer: | — | ||||||||||||||||
touch: () => void | Function that should be used to make control touched. | ||||||||||||||||
Accessors4 | |||||||||||||||||
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 isVisible: boolean | Whether there is a value to clear. | ||||||||||||||||
Methods6 | |||||||||||||||||
(): void | Clears the value. | ||||||||||||||||
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 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
| |||||||||||||||||