Skip to content

Commit 7f7b3d7

Browse files
Patricio AlbizuPatricio Albizu
authored andcommitted
feat: adding disabled state
1 parent 90d7e62 commit 7f7b3d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/components/src/radio/radio-group.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ export class RadioGroupComponent implements ControlValueAccessor, OnInit {
8585
this.setSelection(value);
8686
}
8787

88+
public setDisabledState(isDisabled?: boolean): void {
89+
this.disabled = isDisabled ?? false;
90+
}
91+
8892
public registerOnChange(onChange: (value?: string) => void): void {
8993
this.propagateControlValueChange = onChange;
9094
}

0 commit comments

Comments
 (0)