Closed Danny-Alexander closed 5 years ago
Populating the versions dropdown from versions.json
was pretty straight forward.
I had problems reading the dropdown selected value when loading the table though.
Reason: dropdown is populated via callback function to getJSON which runs asyncronously (which I didn't realise) AFTER the table tries to load.
Solution seems to be to delay table loading and hook up an event to do it when a version is set on the dropdown.
Make the TerraTech version drop-down at the top of the page function.
onChange
type event on the dropdown to refresh the table data