Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Display checbox in Guipaging block in generi-ui grid angular

I am using below grid in angular https://generic-ui.com/examples

Below is screenshot of how it looks in my system.

In the end you can see one Checkbox with Show All.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I want to display that checkbox under Search option in left side of pagination.

You can see details in screenshot and below is my code. In code you can see html and ts file from where I am displaying paging. But I don’t know how can I get displayed this checkbox in left side of pagination.

enter image description here

html file

 <gui-grid [source]="source"
      [columns]="columns"
      [maxHeight]="500"
      [loading]="loading"
      [paging]="paging"
      [sorting]="sorting"
      [searching]="searching"
      [titlePanel]="titlePanel"> 
    </gui-grid>

 <mat-checkbox (change)="showAllUsers()">
      Show All
    </mat-checkbox>

ts file :

Getting data in this way :

columns: Array<GuiColumn> = [
    {
      header: 'Name',
      field: 'name',
      width: 140
    },
    {
      header: 'Type',
      field: 'type',
      width: 140
    }];

I am getting data from API and setting source to that.

paging I am displaying using this code :

paging: GuiPaging = {
    enabled: true,
    page: 1,
    pageSize: 10,
    pageSizes: [10, 25, 50],
    pagerTop: true,
    pagerBottom: true,
    display: GuiPagingDisplay.ADVANCED
  };

>Solution :

You can try with some CSS just giving some idea below..

You can apply to checkbox.. You need to make it responsive so it works in all devices for you.

style="position: absolute; margin-top: -166px; margin-left: 24px;" 
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading