NgDocRadioGroupDirective
Host control for a group of state controls (for example ): the group's model is the value of the checked control, so only one control is checked at a time.
- Decorators
@Directive - Selectors
[ngDocRadioGroup ]- Generic types
T- Extends
DIControl<T, T>
@Directive ({ … })
export class NgDocRadioGroupDirective <T> extends DIControl<T> { … }Members
Constructor1 | |||||||||||||||||
() | — | ||||||||||||||||
Signature | |||||||||||||||||
Properties10 | |||||||||||||||||
change: (value: T | null) => void | — | ||||||||||||||||
changeDetectorRef: | — | ||||||||||||||||
config?: DIControlConfig<TModel, TChildModel> | undefined | — | ||||||||||||||||
disabledValue: | — | ||||||||||||||||
elementRef: | — | ||||||||||||||||
incomingUpdate?: ((value: T | null) => void) | undefined | — | ||||||||||||||||
model: | — | ||||||||||||||||
ngControl: | — | ||||||||||||||||
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. | ||||||||||||||||
Methods4 | |||||||||||||||||
(): 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
| |||||||||||||||||