Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Feature Request: Add custom labels to the AppLayout Tab #1002

Open
1 of 2 tasks
johannesWen opened this issue Feb 11, 2025 · 0 comments · May be fixed by #1003
Open
1 of 2 tasks

Feature Request: Add custom labels to the AppLayout Tab #1002

johannesWen opened this issue Feb 11, 2025 · 0 comments · May be fixed by #1003
Labels
enhancement New feature or request

Comments

@johannesWen
Copy link
Contributor

Feature Request

  • The requested feature would break current behaviour
  • I would be interested in opening a PR for this feature

What problem would this feature solve? Please describe.

Add a custom label to the AppLayout Tab of the default route "/" or other routes if "label" is defined. Currently, the label of the default route is always "Home".

routes = [
    solara.Route("/", component=Page, label="Foo", layout=Layout),
    solara.Route("test", component=Test, label="Test123"),
    solara.Route("example", component=Example)
]

Describe the solution you'd like

If the user defines the "label" parameter of a route, the AppLayout Tab should use this naming. In the above examples the AppLayout tabs labels would be "Foo", "Test123" and "example".

@johannesWen johannesWen added the enhancement New feature or request label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant