You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/angular/components/ui-suggest/src/ui-suggest.intl.ts
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,9 @@ export class UiSuggestIntl implements OnDestroy {
54
54
* @param itemNo The current item index.
55
55
* @param itemCount The total item count.
56
56
*/
57
-
currentItemLabel=(text: string,itemNo: number,itemCount: number)=>`${text} item ${itemNo} out of ${itemCount}`;
57
+
currentItemLabel=(text: string,itemNo: number,itemCount: number,selectedStatus?: boolean)=>`${text}${this._selectedStatusText(selectedStatus)} item ${itemNo} out of ${itemCount}`;
58
+
59
+
currentItemSelectionStatus=(text: string,isItemSelected: boolean)=>`${text} item is ${isItemSelected ? 'selected' : 'removed from selection'}`;
58
60
59
61
/**
60
62
* Custom value label generator function.
@@ -86,4 +88,12 @@ export class UiSuggestIntl implements OnDestroy {
0 commit comments