【发布时间】:2019-09-19 09:43:58
【问题描述】:
我在单个td 中有一个带有复选框的表格。我必须为表中的每个复选框找到值。我该如何实现?
<tr id="trval" *ngFor="let x of csvData">
<td id="td" (click)="click($event)" contenteditable *ngFor="let y of x;let j=index" [class.active]="i == selectedRow">
<i *ngIf="j==0" id="removeicon" class="fa fa-times-circle icon " aria-hidden="true" readonly="true" (click)="deleterow($event)"></i>
<div *ngIf="j==23" contenteditable>
<input type="checkbox" id="dppcheck" (change)="dppflagchecked()">
</div>
<div *ngIf="j!=23">
{{y}}
</div>
</td>
</tr>
【问题讨论】:
-
显示你的html和组件类代码。
-
请将其编辑为您的原始问题,以便阅读
-
使用 [(ngModel)] 和像stackoverflow.com/questions/55914612/…这样的吸气剂
标签: angular checkbox html-table