Serialize data and send as a parameter to the next page #2761
Unanswered
gitmatsika
asked this question in
Q&A
Replies: 2 comments
-
page.go("/login", admin=1, auth=1) You can then use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, I'll check it out.
…On Tue, Feb 27, 2024 at 9:31 AM Emmanuel Aidoo ***@***.***> wrote:
page.go method accepts kwargs, so instead of the dict, you can pass as
kwargs.
Example:
page.go("/login", admin=1, auth=1)
You can then use urlib.parse to extract as dict inside your
on_route_change handler.
—
Reply to this email directly, view it on GitHub
<#2751 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXYIYQDMW32CJPQOEHBTGTTYVWDWXAVCNFSM6AAAAABD2JYBDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRVHE2DGNBZG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment : flet 0.20
Situation
data = {"admin" : 1, "auth" : 1}
self.page.go(f"/login/{data}")
I have a dictionary that i want to pass as a parameter to the called page
When my new page open i am getting the passed parameter as a string
How do i serialize
Beta Was this translation helpful? Give feedback.
All reactions