Skip to content
Snippets Groups Projects
Commit 4b970281 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

feat: 846 Add orcid on author chips tooltip

parent 4f7e2c4e
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,8 @@
[disableRipple]="true"
>
<span class="label"
[matTooltipShowDelay]="1000"
[matTooltip]="value[labelKey]"
[matTooltipShowDelay]="500"
[matTooltip]="getTooltip(value)"
>
{{value[labelKey]}}
</span>
......
......@@ -46,6 +46,7 @@ import {
PropertyName,
ResourceNameSpace,
ResourceState,
StringUtil,
} from "solidify-frontend";
@Component({
......@@ -330,6 +331,14 @@ export class SharedSearchableMultiSelectPresentational extends SharedAbstractPre
private searchIndexItemInSelectedItems(item: any): number {
return this.selectedItems.findIndex(s => s[this.valueKey] === item[this.valueKey]);
}
getTooltip(value: any): string {
let extraInfo = StringUtil.stringEmpty;
if (!isNullOrUndefined(this.extraInfoLabelKey) && !isNullOrUndefined(value[this.extraInfoLabelKey])) {
extraInfo = " - " + value[this.extraInfoLabelKey];
}
return value[this.labelKey] + extraInfo;
}
}
class FormComponentFormDefinition extends BaseFormDefinition {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment