Thanks for that Brett.
Being picky now too, but can we keep the example code uniform with the code from the API reference too.
On that tutorial it has an extra comma at the end of the options in the dropdown array.
8. // Define the currency option values and text for the dropdowns.
9. let currencyOptions = [
10. { "value": "USD", "label": "US Dollars"},
11. { "value": "EUR", "label": "Euros"},
12. { "value": "JPY", "label": "Japanese Yen"},
13. ];
Whereas the actual API reference for dropdown options shows it correctly without the extra comma at the end of the options in the array.
Set the list of options for a dropdown
$w("#myDropdown").options = [
{"label": "Who's on first!", "value": "first"},
{"label": "What's on second", "value": "second"},
{"label": "I Don't Know is on third", "value": "third"}
];
Like I said it is just me being ever so picky here, however it should really match the API reference shouldn’t it. ![]()