roberthovhannisyan / PhoneGap-Plugin-ListPicker

ListPicker Plugin for Cordova/PhoneGap (iOS and Android)
MIT License
35 stars 40 forks source link

Get Value of Selected Item #25

Open bradjtrammell opened 5 years ago

bradjtrammell commented 5 years ago

The plugin automatically returns the text of the selected item, but for the life of me I can't seem to figure out how to get the value of the selected item. I'm looking primarily to get the text for display to the end user, but then the value of the selected index to be passed onto the next command.

How can this be achieved using this plugin? Information populated to the list needs to be dynamic as it's specified from the previous JSON query in the code, and the selection needs to be passed to the following code. How do you get the value of the item selected?