Skip to content

Commit

Permalink
show cube overlay to indicate loading
Browse files Browse the repository at this point in the history
  • Loading branch information
tashrifbillah committed Mar 3, 2022
1 parent b19bbf9 commit 63585ce
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,18 @@
dbc.Col(html.Button('Filter', id='global-filter', n_clicks=0))
]),

dcc.Loading(html.Div(id='loading'),type='cube'),

html.Br(),
html.Div([html.Button('Save', id='save', n_clicks=0), html.Div(id='last-saved')]),
html.Br(),
html.Br(),

html.Div(id='table'),
html.Br(),

dcc.Store(id='properties')

]

)
Expand All @@ -87,7 +92,8 @@


@app.callback([Output('table','children'),
Output('properties','data')],
Output('properties','data'),
Output('loading','children')],
[Input('start','value'), Input('end','value'),
Input('site','value'),
Input('qcimg','value'),
Expand Down Expand Up @@ -194,7 +200,7 @@ def render_table(start, end, site, qcimg, score, click):
bordered=True,
hover=True)

return table,props
return table,props,True



Expand Down

0 comments on commit 63585ce

Please sign in to comment.