Skip to content

Modularization Question #1344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
roivant-matts opened this issue Apr 30, 2024 · 1 comment
Closed

Modularization Question #1344

roivant-matts opened this issue Apr 30, 2024 · 1 comment

Comments

@roivant-matts
Copy link

roivant-matts commented Apr 30, 2024

For a basic app that would provide a set of tools to end users I am attempting to modularize a ui.navset_pill_list / ui.nav_panel layout. Essentially a sidbar with listed tools that provide informatics functionality.

When I attempt to modularize (using expressify) it seems the reactivity based on inputs defined is lost - I may not be understanding the expressify decorator 100%.

Without Modularization

The below does seem to work if I keep the tool1 function in the app module
Modularization attempt

@roivant-matts
Copy link
Author

roivant-matts commented Aug 8, 2024

I found Shiny Modules and the module decorator works perfectly for what I needed. I either missed it or it wasn't yet in the docs when I was looking for a solution.
https://shiny.posit.co/py/docs/modules.html

edit: I missed to say, this is a great feature and I really like the approach to decorate and have the (input, output, session) parameters available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant