2 ~ Copyright (C) 2018 AT&T Intellectual Property. 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.
16 <div class="workspace-attributes">
18 <div class="action-bar-wrapper">
20 *ngIf="!(this.isViewOnly$ | async)"
26 [labelPlacement]="'right'"
27 [labelClassName]="'externalActionLabel'"
28 (click)="onAddAttribute()">
39 #componentAttributesTable
40 (activate)="onExpandRow($event)">
42 <ngx-datatable-row-detail [rowHeight]="80">
43 <ng-template let-row="row" let-expanded="expanded" ngx-datatable-row-detail-template>
44 <div>{{row.description}}</div>
46 </ngx-datatable-row-detail>
48 <ngx-datatable-column [resizeable]="false" name="Name" [flexGrow]="2">
50 <ng-template ngx-datatable-cell-template let-row="row" let-expanded="expanded">
51 <div class="expand-collapse-cell">
52 <svg-icon [clickable]="true" class="expand-collapse-icon"
53 [name]="expanded ? 'caret1-up-o': 'caret1-down-o'" [mode]="'primary'"
54 [size]="'medium'"></svg-icon>
55 <span>{{ row.name }}</span>
59 </ngx-datatable-column>
61 <ngx-datatable-column [resizeable]="false" name="Type" [flexGrow]="1">
62 <ng-template ngx-datatable-cell-template let-row="row">
65 </ngx-datatable-column>
67 <ngx-datatable-column [resizeable]="false" name="Default Value" [flexGrow]="3">
68 <ng-template ngx-datatable-cell-template let-row="row">
71 </ngx-datatable-column>
73 <ngx-datatable-column *ngIf="!(this.isViewOnly$ | async)" [resizeable]="false" name="Action" [flexGrow]="1">
74 <ng-template ngx-datatable-cell-template let-row="row" let-rowIndex="rowIndex">
75 <div class="actionColumn">
76 <svg-icon [clickable]="true"
80 (click)="onEditAttribute($event, row)">
82 <svg-icon [clickable]="true"
85 (click)="onDeleteAttribute($event, row)"
90 </ngx-datatable-column>