I'm facing a challenge where I have a table with three columns, one of which is a checkbox. Here is an image for reference:
https://i.sstatic.net/4U6vP.png
Here is the code snippet:
<div nz-row>
<nz-table nz-col nzSpan="22" [nzLoading]="loading"
nzTitle="Assign a new role to the group" [nzData]="moduledata">
<thead nzSingleSort>
<thead>
<tr>
<th></th>
<th nzShowSort nzSortKey="module">Module</th>
<th nzShowFilter [nzFilters]="filterrole"
(nzFilterChange)="updateFilter($event)">Role</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let module of moduledata">
<td nzShowCheckbox name='tableCheck' id='tableCheck'></td>
<td>{{module.module}}</td>
<td>{{module.role}}</td>
</tr>
</tbody>
</nz-table>
</div>
Here is the expected result to be sent to the backend when the submit button is clicked:
https://i.sstatic.net/hJS9W.png
Any assistance would be greatly appreciated. Just to clarify, I have not implemented any logic in the .ts file yet.