-
AndiMajore authoredAndiMajore authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
dataset-tile.component.html 1.06 KiB
<div class="content">
<ng-select [items]="datasetItems" bindLabel="label" [virtualScroll]="true" class="custom"
placeholder="Select..." [ngModel]="selectedDataset" (ngModelChange)="select($event)" pTooltip="Choose the dataset you want to explore." [tooltipStyleClass]="'drgstn drgstn-tooltip drgstn-tooltip-top'" tooltipPosition="top">
<ng-template ng-option-tmp let-item="item">
{{item.strains}} <br/>
<small>{{item.datasetNames}}</small>
</ng-template>
</ng-select>
<div *ngIf="selectedDataset" class="info">
<ul>
<li *ngIf="selectedDataset.strains"><b>Virus: </b>{{selectedDataset.strains}}</li>
<li *ngIf="selectedDataset.hostTarget"><b>Host/Target: </b>{{selectedDataset.hostTarget}}</li>
<li *ngIf="selectedDataset.method"><b>Method: </b>{{selectedDataset.method}}</li>
<li *ngIf="selectedDataset.source"><b>Source: </b> <a href="{{selectedDataset.source[0]}}"> {{selectedDataset.source[1]}}</a>
</li>
<li *ngIf="selectedDataset.year"><b>Year: </b>{{selectedDataset.year}}</li>
</ul>
</div>
</div>