We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have an array which is created at run time. I want to use this array as the list.
venue_array=(["NGS","NGS"],["VMl","VM"],["KGS","KGS"],["BVB","BVB"]);
var config = { title: "Select a Venue", items: venue_array, selectedValue: "NGS", doneButtonLabel: "Done", cancelButtonLabel: "Cancel" };
The text was updated successfully, but these errors were encountered:
Hi @sankari123 , Consider using map() method to convert each item of venue_array to an object with required properties:
map()
venue_array
venue_array = venue_array.map(function(e) { var result = {}; result['text'] = e[0]; // or e[1] result['value'] = e[1]; // or e[0] return result; });
Sorry, something went wrong.
Thanks for yr reply. I tried your code. But I get this msg. [object Object],[object Object],[object Object],[object Object]
No branches or pull requests
I have an array which is created at run time. I want to use this array as the list.
venue_array=(["NGS","NGS"],["VMl","VM"],["KGS","KGS"],["BVB","BVB"]);
var config = { title: "Select a Venue", items: venue_array, selectedValue: "NGS", doneButtonLabel: "Done", cancelButtonLabel: "Cancel" };
The text was updated successfully, but these errors were encountered: