enriched autocomplete options with data
This commit is contained in:
@@ -45,9 +45,19 @@
|
||||
}
|
||||
|
||||
@for (topic of topics(); track topic) {
|
||||
<mat-option [value]="topic.display_name">{{
|
||||
topic.display_name
|
||||
}}</mat-option>
|
||||
<mat-option [value]="topic.display_name">
|
||||
<div class="topic-option">
|
||||
<div class="topic-main">
|
||||
{{ topic.display_name }}
|
||||
</div>
|
||||
|
||||
<div class="topic-path">
|
||||
{{ topic.domain?.display_name }} >
|
||||
{{ topic.field?.display_name }} >
|
||||
{{ topic.subfield?.display_name }}
|
||||
</div>
|
||||
</div></mat-option
|
||||
>
|
||||
}
|
||||
|
||||
@if (
|
||||
|
||||
@@ -13,3 +13,21 @@ mat-form-field {
|
||||
.topic-field {
|
||||
width: 100%;
|
||||
}
|
||||
.topic-option {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.topic-main {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.topic-path {
|
||||
font-size: 11px;
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user