This commit is contained in:
insanity
2018-06-14 16:42:04 +09:00
parent cd0745c362
commit bb38d922e4
10 changed files with 77 additions and 290 deletions

View File

@@ -8,6 +8,8 @@
<p-table *ngIf="infraHostIPs" [value]="infraHostIPs" selectionMode="single" (onRowSelect)="select.emit($event.data)" [resizableColumns]="true">
<ng-template pTemplate="header">
<tr>
<th style="width: 3.25em">
</th>
<th>Interface</th>
<th style="width:3em">Ver.</th>
<th>Address</th>
@@ -15,8 +17,11 @@
<th>Gateway</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-rowData>
<ng-template pTemplate="body" let-rowData let-rowIndex="rowIndex">
<tr [pSelectableRow]="rowData">
<td>
<p-tableRadioButton [value]="rowData" [disabled]="rowData.metaIPType.key !== 'V4'"></p-tableRadioButton>
</td>
<td>{{rowData.iface}}</td>
<td>{{rowData.metaIPType.key}}</td>
<td>{{rowData.address}}</td>