Mercurial > hg > ng2-query-ismi
changeset 29:52af480a843e
show/hide results buttons.
author | casties |
---|---|
date | Wed, 27 Jan 2016 16:25:00 +0100 |
parents | 1ceea716600f |
children | 193271b6b9d2 |
files | app/query-result-table.component.ts |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/query-result-table.component.ts Wed Jan 27 16:01:06 2016 +0100 +++ b/app/query-result-table.component.ts Wed Jan 27 16:25:00 2016 +0100 @@ -13,7 +13,8 @@ <pre>{{queryState.resultCypherQuery}}</pre> <h2>Query result</h2> <pre>{{resultInfo}}</pre> - <div><input type="checkbox" [(ngModel)]="showTable"/> show results</div> + <div *ngIf="showTable"><button (click)="showTable=false">hide results</button></div> + <div *ngIf="!showTable"><button (click)="showTable=true">show results</button></div> <div *ngIf="showTable"> <div *ngIf="config.paging">Page {{page}} of {{numPages}}</div> <pagination *ngIf="config.paging"