From 7f7b3d721a042e10dc4a1617e5bc18d43575bcbf Mon Sep 17 00:00:00 2001 From: Patricio Albizu Date: Tue, 5 Apr 2022 18:16:35 -0400 Subject: [PATCH] feat: adding disabled state --- projects/components/src/radio/radio-group.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/components/src/radio/radio-group.component.ts b/projects/components/src/radio/radio-group.component.ts index fea3f0db3..8c7a0d05d 100644 --- a/projects/components/src/radio/radio-group.component.ts +++ b/projects/components/src/radio/radio-group.component.ts @@ -85,6 +85,10 @@ export class RadioGroupComponent implements ControlValueAccessor, OnInit { this.setSelection(value); } + public setDisabledState(isDisabled?: boolean): void { + this.disabled = isDisabled ?? false; + } + public registerOnChange(onChange: (value?: string) => void): void { this.propagateControlValueChange = onChange; }