after the button click, something should get downloaded
Concerning the button: You could have it in your layout and set hidden=True initially. Once the data is loaded, you could chnage te visibility of the button. An example:
You could also create the button dynamically, some examples for this can be found here:
Concerning the “loader” you can find a generic example here: