Programmatic Navigation using Router #527
-
Hi, if I have a router (like here, how can I navigate to a page programmatically? In Vue one can call |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Yes, you can do self.server.controller.router_goto = client.JSEval(exec="$router.push($event)").exec |
Beta Was this translation helpful? Give feedback.
-
it works with button, but I get
when trying to use it from Python |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Ah, that make sense... This is a widget, therefore, it needs to belong to a layout.
See my comment in 2. I thought you've added it in a RouterViewLayout, but that was not even the issue since it was not even linked to a UI at all.
To fix the issue, just put it above or below your
client.Style(".v-label { opacity: 100; }")
line.