clearml-web/src/app/webapp-common/experiments/dumb/experiment-custom-cols-menu/experiment-custom-cols-menu.component.html

51 lines
2.6 KiB
HTML
Raw Normal View History

2020-06-04 15:07:14 +00:00
<sm-menu
[iconClass]="'al-icon al-ico-settings al-color pointer create-new-icon ' + (disabled ? 'pointer-events-none blue-570' : 'blue-400')"
2020-06-04 15:07:14 +00:00
smMenuClass="light-theme custom-columns"
2021-01-18 14:30:25 +00:00
buttonTooltip="Customize table"
2020-06-04 15:07:14 +00:00
[showButton]="false"
(click)="!disabled && getMetricsToDisplay.emit()"
2020-06-04 15:07:14 +00:00
(onMenuClosed)="selectMetricActiveChanged.emit(null)"
[style.pointer-events]="disabled ? 'none' : 'initial'"
2020-06-04 15:07:14 +00:00
>
<div *ngIf="!customColumnMode" (click)="$event.stopPropagation()">
<sm-custom-columns-list
[tableCols]="tableCols"
[isLoading]="isLoading"
(removeColFromList)="removeColFromList.emit($event)"
(selectedTableColsChanged)="selectedTableColsChanged.emit($event)"
>
</sm-custom-columns-list>
<div [ngClass]="{loading: isLoading, loaded: !isLoading}">
2021-07-26 09:56:51 +00:00
<div class="sm-menu-header">ADD CUSTOM COLUMN</div>
2020-06-04 15:07:14 +00:00
<div class="custom-column-buttons">
<div class="add-button metrics-button"
smClickStopPropagation
[ngClass]="{disabled: !metricVariants.length}"
(click)="metricVariants.length && selectMetricActiveChanged.emit(CustomColumnMode.Metrics); $event.stopPropagation()"
><i class="al-icon al-ico-add sm mr-1"></i><span class="caption">METRIC</span>
2020-06-04 15:07:14 +00:00
</div>
<div class="add-button metrics-button"
2020-06-04 15:07:14 +00:00
smClickStopPropagation
2020-09-10 13:45:48 +00:00
[ngClass]="{disabled: !hasHyperParams}"
(click)="hasHyperParams && selectMetricActiveChanged.emit(CustomColumnMode.HyperParams); $event.stopPropagation()"
><i class="al-icon al-ico-add sm mr-1"></i><span class="caption">HYPER PARAMETERS</span>
2020-06-04 15:07:14 +00:00
</div>
</div>
</div>
</div>
<sm-select-metric-for-custom-col *ngIf="customColumnMode === CustomColumnMode.Metrics"
[tableCols]="tableCols"
[metricVariants]="metricVariants"
(goBack)="selectMetricActiveChanged.emit(null)"
(selectedMetricToShow)="selectedMetricToShow.emit($event)">
</sm-select-metric-for-custom-col>
<sm-select-hyper-params-for-custom-col *ngIf="customColumnMode === CustomColumnMode.HyperParams"
[tableCols]="tableCols"
[hyperParams]="hyperParams"
(goBack)="selectMetricActiveChanged.emit(null)"
(selectedHyperParamToShow)="selectedHyperParamToShow.emit($event)"
(clearSelection)="clearSelection.emit()">
</sm-select-hyper-params-for-custom-col>
</sm-menu>