is there a possibility to write a callback function in Dash (Python) for a button to reload the page (like the updatebutton from the browser?
app.layout =html.Div([
html.Button(id="refresh"),
])
@app.callback(Output('???', '???'),
[Input('refresh', 'n_clicks')])
def refresh(n):
?
return
?
solved!
html.A(html.Button('Refresh Data'),href='/'),
Another way to just make a command to refresh the page is: html.Meta(httpEquiv="refresh",content="60")
.
This command tells the html to refresh the page after 60 seconds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With