I'm currently facing a challenge in adding a multiselect dropdown feature to my project. Below is the code I have been working on:
HTML
<ng-multiselect-dropdown [settings]="searchSettings" [data]="dummyList" multiple>
</ng-multiselect-dropdown>
TS
dummyList = [
{ item_id: 1, item_text: 'Mumbai' },
{ item_id: 2, item_text: 'Bangaluru' },
{ item_id: 3, item_text: 'Pune' },
{ item_id: 4, item_text: 'Navsari' },
{ item_id: 5, item_text: 'New Delhi' }
]
searchSettings: TslMultiSelectSettings = {
enableSearchFilter: true,
noDataLabel: 'Search For status',
labelKey: 'status',
primaryKey: 'status'
}
The dropdown is successfully generating with the correct number of items. However, it is appearing blank and I am unable to identify the reason behind this issue. Please refer to the image below for visual representation:
https://i.sstatic.net/IBFHA.png
Upon inspecting the element using devtools, I can confirm that the option names are present:
https://i.sstatic.net/I4aZO.png
I am seeking guidance on what might be causing the text not to display and how I could potentially resolve this problem.