在长时间 运行 操作期间在浏览器上显示旋转 wheel/circle 图像
Display spinning wheel/circle image on browser during long running operation
当在 dash
布局表单上单击 button
时,browser
选项卡(无论如何在 Chrome
中)显示 "Updating"。我想给更明显的反馈是操作是运行.
在破折号回调中的长时间 运行 计算期间显示纺车图像的规范方法是什么?
# This is a long running operation
@app.callback(
dash.dependencies.Output('datatable-optionchain','children'),
[dash.dependencies.Input('button', 'n_clicks')],
#[dash.dependencies.State('input-box', 'value')],
[dash.dependencies.State('dropdown1', 'value'),
dash.dependencies.State('my-date-picker-single', 'date'),
dash.dependencies.State('dropdown2', 'value')],
)
def update_output(n_clicks, svalue, dtvalue, tvalue):
#How do I put a spinning wheel here to advise user we are working on it?
这很有帮助。我无法让纺车工作,但我确实让 .css
版本工作了。尽管有一些不一致:
当在 dash
布局表单上单击 button
时,browser
选项卡(无论如何在 Chrome
中)显示 "Updating"。我想给更明显的反馈是操作是运行.
在破折号回调中的长时间 运行 计算期间显示纺车图像的规范方法是什么?
# This is a long running operation
@app.callback(
dash.dependencies.Output('datatable-optionchain','children'),
[dash.dependencies.Input('button', 'n_clicks')],
#[dash.dependencies.State('input-box', 'value')],
[dash.dependencies.State('dropdown1', 'value'),
dash.dependencies.State('my-date-picker-single', 'date'),
dash.dependencies.State('dropdown2', 'value')],
)
def update_output(n_clicks, svalue, dtvalue, tvalue):
#How do I put a spinning wheel here to advise user we are working on it?
这很有帮助。我无法让纺车工作,但我确实让 .css
版本工作了。尽管有一些不一致: