I'm displaying a volatile set of text values in a picker, and while the onAccept returns the picked value, I want the index, and have to search the PickerFactory's array to find the index. That seems a lot of work, using valuable resources. I note that the PickerDelegate's return value is an array, and wonder if I can add the index there, but can't decode the syntax.
[resolved]
I modeled my code on the samples and used
function getValue(index) {
return mWords[index];
}But what actually works, to return the index is:
function getValue(index) {
return index;
}