File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 22 Component ,
33 Input ,
44 Output ,
5- EventEmitter
5+ EventEmitter ,
6+ HostBinding
67} from "@angular/core" ;
78import { I18n } from "carbon-components-angular/i18n" ;
89import { TableItem } from "../table-item.class" ;
@@ -41,6 +42,9 @@ export class TableRadio {
4142 return this . row ? ! ! ( this . row as TableRow ) . disabled : false ;
4243 }
4344
45+ @HostBinding ( "class.cds--table-column-radio" ) radioColumn = true ;
46+ @HostBinding ( "class.cds--table-column-checkbox" ) selectableColumn = true ;
47+
4448 /**
4549 * Used to populate the row selection checkbox label with a useful value if set.
4650 *
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ import { TableRowSize } from "../table.types";
3737 <th
3838 *ngIf="!skeleton && showSelectionColumn && enableSingleSelect"
3939 scope="col"
40- style="width: 0;"
4140 [id]="model.getId('select')">
4241 <!-- add width 0; since the carbon styles don't seem to constrain this headers width -->
4342 </th>
You can’t perform that action at this time.
0 commit comments