I do not understand about manual routing #107
Replies: 11 comments 5 replies
-
and how to hide tabs . when routing. |
Beta Was this translation helpful? Give feedback.
-
my code but i go to about . page about not change
|
Beta Was this translation helpful? Give feedback.
-
I'll get back on the routing later this week. |
Beta Was this translation helpful? Give feedback.
-
If you want to do the routing yourself, try: router = solara.use_router()
print(router.path, router.search) See also https://solara.dev/api/use_router and https://solara.dev/docs/understanding/routing which I updated to reflect this. |
Beta Was this translation helpful? Give feedback.
-
Note that routes() should have been |
Beta Was this translation helpful? Give feedback.
-
yes it works now . and what if i want to add route parameters on Route()
|
Beta Was this translation helpful? Give feedback.
-
and why for this code route_current always value None . even though the result is in the form of the current link
and result print terminal full code
|
Beta Was this translation helpful? Give feedback.
-
Ok, I've taken all your questions to revise our multipage support for single files. See 9d81cba Which is now reflected in Now I think it is much simpler: from solara import *
@solara.component
def MyHome():
with Column():
Title("home")
with Card():
Markdown('hai home <a href="/details/extra">extra</a>')
@solara.component
def About():
with Column():
Title("about")
with Card():
Markdown("hai about")
@solara.component
def Details(param: str = "---"):
# alternative way to get 'all' the rest of the parameters
router = solara.use_router()
level = solara.use_route_level() # we know this is 1, but to make it more generic
parts_unhandled = router.parts[level:]
with Column():
Title("Details: ")
with Card():
Markdown("hai Details: " + repr(parts_unhandled) + " " + param)
routes = [
Route(path="/", label="test", component=MyHome),
Route(path="about", component=About),
Route(path="details", component=Details),
] |
Beta Was this translation helpful? Give feedback.
-
Note that this requires version 1.14.0 |
Beta Was this translation helpful? Give feedback.
-
how to hide app bar . i don't call appbar in my code but why does appbar always appear
I don't use AppBar() but why does the appbar appear instead |
Beta Was this translation helpful? Give feedback.
-
is there a widget component for spectrum audio . like on tiktok or spotify . if I turn on the music then the audio spectrum will appear like this. it's just a request. if not there's nothing |
Beta Was this translation helpful? Give feedback.
-
i studied this site https://solara.dev/docs/understanding/routing but
i get error
my code
is there a full code sample of manual routing. and how to get routing parameters and query route
Beta Was this translation helpful? Give feedback.
All reactions