Previously, I was using ListView to show all the ‘names’ in a list and now I want to put all names into a DropdownList and that means my Observable is working fine and I am getting data to the UI.
I tried this code
<StackLayout> <GridLayout rows="auto, auto, *" columns="auto, *"> <DropDown #dd backroundColor="red" [items]="names$ | async" (selectedIndexChanged)="onchange($event)" (opened)="onopen()" row="0" colSpan="2"> </DropDown> </GridLayout> </StackLayout>
It shows a dropdownlist of Objects in Observable. how can I read values from that Object ?
I tried different combinations using names$. but it didn’t worked.
- Is it even possible to get data out of Observable in Dropdownlist ?
- am I missing something with the tags or attributes here ?