protocol-opcua/opcua-address-space-detail.component.ts
selector | opcua-address-space-detail |
templateUrl | ./opcua-address-space-detail.component.html |
Properties |
Methods |
Inputs |
Outputs |
Accessors |
constructor(addressSpaceService: AddressSpaceService)
|
||||||
Parameters :
|
node |
Type : any
|
toggleAttrDetail |
Type : EventEmitter<AddressSpaceNode>
|
navigateTo | ||||||
navigateTo(ancestors: string[])
|
||||||
Parameters :
Returns :
void
|
setNodeData | ||||
setNodeData(nodeData)
|
||||
Parameters :
Returns :
void
|
toggleDetail | ||||
toggleDetail(node)
|
||||
Parameters :
Returns :
void
|
nodeDataAttr |
Type : Map<string | string>
|
nodeDataRef |
Type : object[]
|
selected |
Type : boolean
|
Default value : false
|
showDetails |
Type : boolean
|
Default value : false
|
node | ||||
setnode(n)
|
||||
Parameters :
Returns :
void
|
<div
class="card flex-scroll m-b-4 split-row-2 animated fast"
style="pointer-events: all"
[ngClass]="{ fadeInRightBig: showDetails, fadeOutRightBig: !showDetails }"
>
<div class="card-header separator ">
<h4>{{ 'Attributes' | translate }}</h4>
<button
class="close flex-item-right visible-sm visible-xs"
title="{{ 'Close' | translate }}"
(click)="toggleDetail(nodeDataAttr)"
>
×
</button>
</div>
<div class="card-inner-scroll">
<div class="card-block">
<table class="table table-striped table-condensed">
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<thead>
<tr>
<th>{{ 'Attribute' | translate }}</th>
<th>{{ 'Value' | translate }}</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of nodeDataAttr | keyvalue">
<td>{{ item.key }}</td>
<td *ngIf="item.key === 'absolutePaths'" class="text-break-word">
{{ item.value | json }}
</td>
<td *ngIf="item.key === 'ancestorNodeIds'" class="text-break-word">
<a *ngFor="let value of item.value" (click)="navigateTo(value)">
{{ value | json }}</a
>
</td>
<td *ngIf="item.key !== 'absolutePaths' && item.key !== 'ancestorNodeIds'">
{{ item.value }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class="card flex-scroll split-row-2 animated fast"
style="pointer-events: all"
[ngClass]="{ fadeInRightBig: showDetails, fadeOutRightBig: !showDetails }"
>
<div class="card-header separator">
<h4>{{ 'References' | translate }}</h4>
</div>
<div class="card-inner-scroll">
<div class="card-block">
<table class="table table-striped table-condensed">
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<thead>
<tr>
<th>{{ 'Attribute' | translate }}</th>
<th>{{ 'Value' | translate }}</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of nodeDataRef">
<td>{{ item.referenceLabel }}</td>
<td class="text-break-word">{{ item.targetLabel }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>