jeudi 30 août 2018

Only select the elements rendered on the page

Currently, the checkbox used selects all the items in list. Is there any way to only select the items that are currently rendered on the page instead of selecting all of them?

 <mat-checkbox (change)="$event ? masterToggle() : null"
      [checked]="selection.hasValue() && isAllSelected()"
      [indeterminate]="selection.hasValue() && !isAllSelected()">
 </mat-checkbox>




Aucun commentaire:

Enregistrer un commentaire