You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nytimes has a nice countdown badge that tells the user when the data will update:
This might be a nice built-in component that could be tied to a dcc.Interval component. It would be documented with dcc.Interval and its use would be encouraged for good UX.
API ideas:
A dcc.Countdown component that could "target" a dcc.Interval component: `dcc.Countdown(target='interval-id', children='Checking for updates in {}')
Or, built in to the dcc.Interval component itself: `dcc.Interval(children='Checking for updates in {}')
The text was updated successfully, but these errors were encountered:
Or give dcc.Interval a prop like display to choose between default no display, text in various format (seconds, HH:MM:SS etc), or a graphical element like a ring or a progress bar. Then your use case would look like: html.Span(['Checking for updates in ', dcc.Interval(display='M:SS')])
@chriddyp I wrote a quick example that does this using a clientside callback. It'd be nice if the countdown was global across all users, but that would be better implemented in a different way I would assume. What do you think?
nytimes has a nice countdown badge that tells the user when the data will update:
This might be a nice built-in component that could be tied to a
dcc.Interval
component. It would be documented withdcc.Interval
and its use would be encouraged for good UX.API ideas:
dcc.Countdown
component that could "target" adcc.Interval
component: `dcc.Countdown(target='interval-id', children='Checking for updates in {}')dcc.Interval
component itself: `dcc.Interval(children='Checking for updates in {}')The text was updated successfully, but these errors were encountered: