Skip to content

Commit

Permalink
update the PR reflecting the comments skip ci skip
Browse files Browse the repository at this point in the history
  • Loading branch information
droshev committed Feb 16, 2020
1 parent 1ef1cf2 commit 140d88f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
<thead fd-table-header>
<tr fd-table-row>
<th fd-table-cell>
<fd-checkbox
[compact]="true"
label="Select all"
[(ngModel)]="selectMasterModel"
(click)="selectMaster()"
></fd-checkbox>
<fd-checkbox [compact]="true"
label="Select all"
[(ngModel)]="selectMasterModel"
(click)="selectMaster()"></fd-checkbox>
</th>
<th fd-table-cell>Column 1</th>
<th fd-table-cell>Column 2</th>
Expand All @@ -19,17 +17,15 @@
<tbody fd-table-body>
<tr *ngFor="let row of tableRows; let i = index" fd-table-row>
<td fd-table-cell>
<fd-checkbox
[compact]="true"
[ngModel]="tableRows[i].checked"
(ngModelChange)="select(i)"
label="Option {{ i }}"
></fd-checkbox>
<fd-checkbox [compact]="true"
[ngModel]="tableRows[i].checked"
(ngModelChange)="select(i)"
label="Option {{ i }}"></fd-checkbox>
</td>
<td fd-table-cell>{{ row.column1 }}</td>
<td fd-table-cell>{{ row.column2 }}</td>
<td fd-table-cell>{{ row.column3 }}</td>
<td fd-table-cell>{{ row.date }}</td>
<td fd-table-cell>{{row.column1}}</td>
<td fd-table-cell>{{row.column2}}</td>
<td fd-table-cell>{{row.column3}}</td>
<td fd-table-cell>{{row.date}}</td>
<td fd-table-cell><fd-icon [glyph]="row.type"></fd-icon></td>
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export class TableCheckboxesExampleComponent {
select(row: number): void {
if (this.tableRows[row].checked === false) {
this.selectedRows.push(row);
console.log(this.tableRows);
this.tableRows[row].checked = true;
} else {
this.selectedRows.splice(this.selectedRows.indexOf(row), 1);
Expand Down

0 comments on commit 140d88f

Please sign in to comment.