2 ~ Copyright (C) 2019 Nokia. All rights reserved.
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
8 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
23 [columnMode]="'force'"
28 [loadingIndicator]="isLoading"
32 <ngx-datatable-column prop="{{col.prop}}" [minWidth]="100" *ngFor="let col of columns">
33 <template let-column="column" height="100" ngx-datatable-header-template>
34 <span class="datatable-column-span">
36 <div *ngIf="canBeDeleted(col.name)" style="width: 45px !important; color: red; "
37 class="delete-icon" (click)="deleteColumn(col)">⛌</div>
42 class="datattable-input-filter"
43 placeholder='Filter column...'
44 (keyup)='updateColumnFilter($event, col.prop)'
47 </ngx-datatable-column>
49 <ngx-datatable-column *ngIf="addNewColumn" class="datatable-white-body-cell" [minWidth]="220" [maxWidth]="220" [width]="220" >
50 <template ngx-datatable-header-template>
51 <gab-column-provider [pathsAndNames]="pathsandnames" (onCancel)="hideAddNewColumn()" (onSave)="refresh()"></gab-column-provider>
53 <template class="datatable-white-body-cell" ngx-datatable-cell-template>
55 </ngx-datatable-column>
57 <ngx-datatable-column class="datatable-white-body-cell" [minWidth]="50" [maxWidth]="50" [width]="50" >
58 <template ngx-datatable-header-template>
59 <div data-tests-id="gab-add-btn" class="add-btn add-btn-div" (click)="showAddNewColumn()">Add</div>
61 <template class="datatable-white-body-cell" ngx-datatable-cell-template>
63 </ngx-datatable-column>