dataset-list.component.html 1.5 KB

12345678910111213141516171819202122232425262728
  1. <div class="d-flex flex-row">
  2. <div class="p-2 flex-grow-1">
  3. <span class="glyphicon cursor-pointer"
  4. [ngClass]="datasetlistVisible ? 'icon-chevron-down' : 'icon-chevron-right'"
  5. (click)="datasetlistVisible = !datasetlistVisible"></span>
  6. <label class="pl-2 cursor-pointer" (click)="datasetlistVisible = !datasetlistVisible">{{factor.name}}</label>
  7. </div>
  8. <div class="p-2">{{(factor.weight * 100).toFixed(0)}}&nbsp;%</div>
  9. </div>
  10. <input type="range" class="custom-range" [(ngModel)]="factor.weight" min="0"
  11. max="1.0" step="0.05">
  12. <div [hidden]="!datasetlistVisible">
  13. <div *ngFor="let dataset of factor.datasets; let descriptionVisible = false">
  14. <button type="button" class="btn btn-sm btn-light hs-lm-item-visibility"
  15. [ngClass]="dataset.included ? 'hs-checkmark' : 'hs-uncheckmark'"
  16. (click)="dataset.included = !dataset.included;$event.stopPropagation()"></button>
  17. <!-- commented because we do not have descriptions yet -->
  18. <!--span class="glyphicon cursor-pointer text-secondary"
  19. [ngClass]="descriptionVisible ? 'icon-chevron-down' : 'icon-chevron-right'"
  20. (click)="descriptionVisible = !descriptionVisible"></span-->
  21. <!--label class="pl-2 cursor-pointer text-secondary"
  22. (click)="descriptionVisible = !descriptionVisible">{{dataset.name}}</label-->
  23. <label class="pl-2 text-secondary">{{dataset.name}}</label>
  24. <div class="p-2 mb-2 text-justify text-info" [hidden]="!descriptionVisible">
  25. {{dataset.desc}}
  26. </div>
  27. </div>
  28. </div>