Embedding Solara / iframe / parameter
I would like to integrate Solara to the exiting application using iframe with passing arguments.
<iframe src="http://localhost:8765/?data=test" width="100%" height="100%"></iframe> How can I read arguments in Solara application? For example in Voila I can use: from voila.utils import get_query_string query_string = get_query_string() How can I do it the same in Solara? Thanks!
<iframe src="http://localhost:8765/?data=test" width="100%" height="100%"></iframe> How can I read arguments in Solara application? For example in Voila I can use: from voila.utils import get_query_string query_string = get_query_string() How can I do it the same in Solara? Thanks!
2 Replies
Hi @Arkadii ,
you can use https://solara.dev/documentation/api/routing/use_router to get access to the router, which has a .search property
Thank you, sir. I'll check it!
@MaartenBreddels it works, thank you!