-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
This issue pertains to adding a flexible "loading" UI for component authors and therefore, dash developers.
This work item has been sponsored by an organization. Big thanks!
If your company or organization would like to prioritize features by sponsoring dash development, please reach out
The loading experience will be customizable by the component authors on a per-component basis. This might involve:
dash-renderercould pass in ais_updatingandis_updating_propto the component when it is waiting for an update.- The component author would be responsible for rendering the appropriate loading screens
- This enables component authors to design different UIs for different components: The loading screen for the
figureproperty of thedcc.Graphcomponent might be a faded overlay whereas the loading screen for a dropdown'soptionsproperty might be something different. - This also enables component authors to "disable" their components when they are in an updating state
- Component authors would be responsible for making this loading screen customizable. They might have a prop like
loading_screen_style = 'basic' | 'overlay' | 'spinner' | 'empty-div' | 'none'. This might be customizable on a per property basis. - If a certain callback updates a property really quickly, the user can omit the loading screen for that property (by setting
loading_screen_style = 'none') so that the component doesn't "flash" it's screen on and off.
In addition to creating the framework for introducing loading screens into components, we will introduce our own loading designs into our set of component libraries (dash-html-components, dash-core-components). Our implementation should set the design and API standard for other component authors.
hredestig, jacintoArias and RoyTrudell
Metadata
Metadata
Assignees
Labels
No labels