Danny-Alexander / terratech-block-list

Web page to format and display mod-exported block properties for TerraTech game.
MIT License
3 stars 0 forks source link

Display data for selected TT version #20

Closed Danny-Alexander closed 5 years ago

Danny-Alexander commented 5 years ago

Make the TerraTech version drop-down at the top of the page function.

Danny-Alexander commented 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.