changeset 54:4341c1b4e3ae ng2-table

cleanup.
author casties
date Thu, 23 Mar 2017 18:57:01 +0100
parents ac4bfbd99638
children 308c96f734c8
files src/app/query-result-table.component.ts
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/app/query-result-table.component.ts	Thu Mar 23 14:29:20 2017 +0100
+++ b/src/app/query-result-table.component.ts	Thu Mar 23 18:57:01 2017 +0100
@@ -1,8 +1,5 @@
 import {Component, OnInit} from '@angular/core';
 
-//import {NG_TABLE_DIRECTIVES} from 'ng2-table/ng2-table';
-//import {PAGINATION_DIRECTIVES} from 'ng2-bootstrap/ng2-bootstrap';
-
 import {QueryState} from './query-state';
 
 @Component({
@@ -27,13 +24,12 @@
             <div>
                 <form (ngSubmit)="onSelectCols($event)">
                     Columns:
-                    <span *ngFor=" let col of allColumns">
-                        <input type="checkbox" name="colName" value="{{col.name}}" [(ngModel)]="col.show">{{col.name}}
+                    <span *ngFor="let col of allColumns">
+                        <input type="checkbox" name="col{{col.name}}" value="{{col.name}}" [(ngModel)]="col.show">{{col.name}}
                     </span> 
                     <button type="submit">change columns</button>
                 </form>
             </div>
-            <!-- <div *ngIf="config.paging">Page {{currentPage}} of {{numPages}}</div> -->
             <pagination *ngIf="config.paging" class="pagination-sm"
                         [(ngModel)]="currentPage"
                         [totalItems]="length"
@@ -52,8 +48,7 @@
         </div>
     </div>
         `,
-    inputs: ['queryState', 'resultInfo'],
-//    directives: [NG_TABLE_DIRECTIVES, PAGINATION_DIRECTIVES]
+    inputs: ['queryState', 'resultInfo']
 })
 
 export class QueryResultTableComponent implements OnInit {