File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 6
6
} from "@angular/core" ;
7
7
import { I18n } from "carbon-components-angular/i18n" ;
8
8
import { TableItem } from "../table-item.class" ;
9
+ import { TableRow } from "../table-row.class" ;
9
10
import { Observable } from "rxjs" ;
10
11
11
12
@Component ( {
@@ -17,6 +18,7 @@ import { Observable } from "rxjs";
17
18
[attr.aria-label]="getLabel() | i18nReplace:getSelectionLabelValue(row) | async"
18
19
[ariaLabel]="getLabel() | i18nReplace:getSelectionLabelValue(row) | async"
19
20
[checked]="selected"
21
+ [disabled]="disabled"
20
22
(change)="change.emit()">
21
23
</cds-radio>
22
24
`
@@ -35,6 +37,10 @@ export class TableRadio {
35
37
return this . _label . value ;
36
38
}
37
39
40
+ get disabled ( ) : boolean {
41
+ return this . row ? ! ! ( this . row as TableRow ) . disabled : false ;
42
+ }
43
+
38
44
/**
39
45
* Used to populate the row selection checkbox label with a useful value if set.
40
46
*
You can’t perform that action at this time.
0 commit comments