minor fix

This commit is contained in:
Diamantis Tziotzios 2024-04-19 10:53:27 +03:00
parent eb146b21c7
commit 7daafdae2e
1 changed files with 5 additions and 4 deletions

View File

@ -58,10 +58,11 @@ export class PrefillDescriptionDialogComponent extends BaseComponent implements
this.prefillAutoCompleteConfiguration = {
filterFn: this.searchDescriptions.bind(this),
loadDataOnStart: false,
displayFn: (item) => (item['label'].length > 60) ? (item['label'].substr(0, 60) + "...") : item['label'],
titleFn: (item) => item['label'],
subtitleFn: (item) => item['id'],
valueAssign: (item) => item,
displayFn: (item: Prefilling) => (item.label.length > 60) ? (item.label.substr(0, 60) + "...") : item.label,
titleFn: (item: Prefilling) => item.label,
subtitleFn: (item: Prefilling) => item.id,
valueAssign: (item: Prefilling) => item,
uniqueAssign: (item: Prefilling) => item.id,
};
}