Latest Dash Labs Docs and Examples:
Based on @vuthanhdatt 's question in this post, see the new example of how to pass parameters to pages using query strings.
Based on the question from @bigmike and @vnnw in this post, there is now an example of how to use @app.long_callback
with pages/
.
The new chapter on layout functions is based on @mawe’s question on how to make a nav menu for certain pages. Special thanks to @pandamodium for pointing out that it’s necessary to make the layout
a function if you are using dash.page_registry
from within the `pages/ folder.
Note - This documentation is a work in progress. Please feel free to make suggestions for improvements by commenting here or making a pull request in dash-labs.
Multi-Page App Docs
New in dash-labs>=1.0.0:
-
08-MultiPageDashApp.md
- Overview, quickstart apps, reference for the
pages
plug-in
- Overview, quickstart apps, reference for the
-
09-MultiPageDashApp-NestedFolders.md
- Example of organizing app pages in nested folders within the
pages/
folder
- Example of organizing app pages in nested folders within the
-
10-MultiPageDashApp-MetaTags.md
- Details on how the title, image, and description are used to create the meta tags which determine how your app looks when shared on social media.
-
11-MultiPageDashApp-LayoutFunctions.md
- Examples of when to make the
layout
a function - like when creating a custom menu by page, or using query strings.
- Examples of when to make the
Multi-Page App Demos
Examples and demos are located in the docs/demos directory.
-
multi_page_basics
- Minimal examples of all the features and basic quickstart apps. (see chapter 8 for details.)
-
multi_page_example1
- A quickstart app using
dash-bootstrap-components
and some simple callbacks.
- A quickstart app using
-
multi_page_layout_functions
- An app that creates a sidebar menu for certain pages. (See chapter 11 for details.)
-
multi_page_long_callback
- An example of how to use
@app.long_callback()
withpages/
- An example of how to use
-
multi_page_meta_tags
- The example app used to show how the meta tags are generated. (See chapter 10 for details.)
-
multi_page_nested_folders
- This is the example app used in chapter 9.
-
multi_page_query_strings
- An example of using query strings in the URL to pass parameters from one page to another.
Installation
dash-labs
is regularly updated, so be sure to install the latest version:
$ pip install -U dash-labs
New feature coming soon: Variables in the pathname.