1abd68db500b92339353490b0885431af2931359
[sdc.git] /
1 <!--
2   ~ Copyright (C) 2019 Nokia. All rights reserved.
3   ~
4   ~ Licensed under the Apache License, Version 2.0 (the "License");
5   ~ you may not use this file except in compliance with the License.
6   ~ You may obtain a copy of the License at
7   ~
8   ~      http://www.apache.org/licenses/LICENSE-2.0
9   ~
10   ~ Unless required by applicable law or agreed to in writing, software
11   ~ distributed under the License is distributed on an "AS IS" BASIS,
12   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   ~ See the License for the specific language governing permissions and
14   ~ limitations under the License.
15   -->
16
17 <div>
18     <ngx-datatable
19         class="material"
20         *ngIf="ready"
21         [rows]="rows"
22         [columns]="columns"
23         [columnMode]="'force'"
24         [headerHeight]="50"
25         [scrollbarV]="true"
26         [scrollbarH]="true"
27         [footerHeight]="0"
28         [loadingIndicator]="isLoading"
29         [rowHeight]="200"
30         [reorderable]="false"
31         [selected]="selectedRows"
32         [selectionType]="'cell'"
33         >
34         <ngx-datatable-column [prop]="col.prop" *ngFor="let col of columns">
35             <template let-column="column" ngx-datatable-header-template>
36             <span style="height:10px">
37               <b>{{col.name}}</b>
38             </span>
39                 <br/>
40                 <input
41                     type='text'
42                     class="datatable-input-filter"
43                     placeholder='Filter column...'
44                     (keyup)='updateColumnFilter($event, col.prop)'
45                 />
46             </template>
47         </ngx-datatable-column>
48
49     </ngx-datatable>
50 </div>