Select button for datatables

// Some code
```html
  <table #table class="table table-bordered table-striped table-hover table-wrapper-scroll-y" datatable [dtOptions]="dtOptions"
    [dtTrigger]="dtTrigger" style="width:100%" >
    <thead class="table-dark">
      <tr align="center" class="align-middle center">
        <th>Id</th>
        <th>QR Code </th>
        <th>Download</th>
        <th class="text-warning" style="width: 60px;">Print<br>
          <!-- <a href="#/qrcode/batch-print">  -->
            <button type="button" mat-button class="btn btn-outline-info btn-sm mb-1" (click)="BatchPrint()">
            <i class="fa fa-print" title='Batch print QrCode'></i>
           </button><br>
           
           <button style="cursor:pointer;" mat-button class="btn  btn-sm mb-1"  >
            <input style="cursor:pointer;" type="checkbox"
            (change)="onCheckBoxPrintAll($event, isPrintAll?true:false)"  />

           </button>
          <!-- </a> -->
        </th>
```

```html
 <tbody>
      <tr *ngFor="let dataItem of QrcodeList" scope="row" align="center">
        <td>{{dataItem.id}}</td>
 
        <td>
          <input style="cursor:pointer;" type="checkbox" [value]="dataItem.guId"
            (change)="onCheckboxChange(dataItem.guId, dataItem.name, $event)"  />

        </td>
        
        ....
```

Last updated

Was this helpful?