mercredi 9 juin 2021

how to allow only one check box to be checked in ngfor loop grid in angualr

i have checkboxes in grid as shown below ,but the issue is, it is allowing multiple check boxes to be selected every time which need to be restricted to one at a time .How can i do this?

<tr *ngFor="let remote of asyncNewLinkRemoteModel | async  | paginate: { id: 'activities', itemsPerPage: 5, currentPage: p }">
                                                                    <td>                                                        
                                                                        <input type="checkbox"
                                                                        name="chkRmt"
                                                                        value="" (change)="setSelectedRmt(remote)"
                                                                         />
                                                                    </td>
                                                                    <td></td>
                                                                    <td></td>
                                                                    <td></td>
                                                                    <td></td>
                                                                </tr>



Aucun commentaire:

Enregistrer un commentaire