title: How to select current page's rows only in ngx data table in angular5
body: <p>I am using ngx-data table and using checkbox type of ngx-data table. I want to select current pages rows only but it when i select-all option so it selects all rows in array. My code is here</p>
  
  <pre><code>&lt;ngx-datatable-column [width]="50" [sortable]="false" [canAutoResize]="false" [draggable]="false" [resizeable]="false"&gt;
                            &lt;ng-template class="datatable-checkbox" ngx-datatable-header-template let-value="value" let-allRowsSelected="allRowsSelected"
                              let-selectFn="selectFn"&gt;
                              &lt;div class="checkbox-fade fade-in-default datatable-header-cell-label"&gt;
                                &lt;label&gt;
                                  &lt;input type="checkbox" [checked]="allRowsSelected" (change)="selectFn(!allRowsSelected)" /&gt;
                                  &lt;span class="cr"&gt;
                                    &lt;i class="cr-icon icofont icofont-ui-check txt-primary"&gt;&lt;/i&gt;
                                  &lt;/span&gt;
                                &lt;/label&gt;
                              &lt;/div&gt;
                            &lt;/ng-template&gt;
                            &lt;ng-template class="datatable-checkbox" ngx-datatable-cell-template let-value="value" let-isSelected="isSelected" let-onCheckboxChangeFn="onCheckboxChangeFn"&gt;
                              &lt;div class="checkbox-fade fade-in-default datatable-header-cell-label"&gt;
                                &lt;label&gt;
                                  &lt;input type="checkbox" [checked]="isSelected" (change)="onCheckboxChangeFn($event)" /&gt;
                                  &lt;span class="cr"&gt;
                                    &lt;i class="cr-icon icofont icofont-ui-check txt-primary"&gt;&lt;/i&gt;
                                  &lt;/span&gt;
                                &lt;/label&gt;
                              &lt;/div&gt;
                            &lt;/ng-template&gt;
                          &lt;/ngx-datatable-column&gt;
  </code></pre>
  
  <p>How can i select only current page rows only on select-all option?</p>