How to implement a multi-page or modal widget? #375
Unanswered
milanmitrovic
asked this question in
Q&A
Replies: 2 comments 2 replies
-
UPDATE: I just tried this in Jupyter and it works. I was doing this inside VS Code, and there it still doesn't. I would still appreciate any help in solving it in VS Code, as it is a lot nicer workflow. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm still new to Solara, but I believe that the issue here is that your state is not reactive. When the Page loads the first time, it sets the state as SimpleMode.BROWSE, but because it's not reactive, changes to the state don't trigger a page update. |
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
-
I'm trying to implement a simple "modal" widget. I want to have several different "pages" that I show conditionally depending on internal state of the widget.
I tried to implement it like the following:
This unfortunately doesn't work as the view is always stuck in "Browse" mode. The logging statements show that the code is getting executed and the right branches trigger on mode change, but the UI doesn't update.
What's the proper way to implement something like this?
Beta Was this translation helpful? Give feedback.
All reactions