Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

dash title design issues #2811

Closed
jaxonister opened this issue Mar 24, 2024 · 3 comments · Fixed by #2826
Closed

dash title design issues #2811

jaxonister opened this issue Mar 24, 2024 · 3 comments · Fixed by #2826

Comments

@jaxonister
Copy link

Title logic problem, when instantiating dash, title was set, when registering route, it was not set, should title when instantiating dash be used instead of module name? You can set the title of a single page when registering routes, but if the title of all pages is the same, is the code redundant, is there any other way to set the title globally, and only need to set it once

@CNFeffery
Copy link
Contributor

I'm not entirely clear on the objective of your question. The title set in dash.Dash() is the default title for the application. If you're looking for a more flexible and dynamic way to update the title, you might consider utilizing this component: https://fuc.feffery.tech/FefferySetTitle.

@AnnMarieW
Copy link
Collaborator

@jaxonister I agree that It would be convenient to be able to set the app title (and perhaps even the app description for the meta tags) and have it apply to all pages.

@alexcjohnson - If we made its so, would this be considered a breaking change for the title? It seems reasonable to assume it would work this way.

@jaxonister
Copy link
Author

jaxonister commented Mar 30, 2024

Title, favicon.ico, all have such problems. normally, the title and favicon of a website are unified, and not each page is set differently. in fact, if instantiated, it is OK to set it once. if a page needs to be set separately, it can be set separately when registering layout. I think this design is better. I hope to adopt it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants