-
Notifications
You must be signed in to change notification settings - Fork 1
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
Internal link function #51
Comments
I guess this might be quite specific to how you've set your app up, though given the general push (even from POSIT) towards bslib, we could look at adding this use case for bslib tabs in specifically in as a specific helper that saves a little bit a of code for analysts, agree on having it as a module pair, should be a fairly quick addition to the package 😄 I think the server function would only need Could also add an example or two for where you have multiple pages you link to, and can then in the server use something like |
Definitely, its quite a niche usage but does push people to using Oooo, I like the use of I am a bit confused, why would we not need the Yep, really like that example - and shows off |
Yeah, anything pushing towards bslib is probably a good thing, and ID params in modules can be very nifty! Well worth making use of them to streamline the code. For the One other thing I think whoever implements this should consider (even if it's future me, writing here so I don't forget!) - is how it'll handle ID clashes, for example if you wanted to link to a given tab from multiple places in the app, how would that work, and what would be best practice. Ideally you'd only need one server call, but I don't know how that'd work in practice without playing about with it. |
Is your feature request related to a problem? Please describe.
With inspiration from
dfeshiny::external_link()
, what about `dfeshiny::internal_link()?I want to be able to link to another page (or tab) from within my Shiny app.
Describe the solution you'd like
A simple function/ module to be able to link from one tab to another in a Shiny app.
Describe alternatives you've considered
You need to add an observeEvent() function to the server.R script for any link that navigates within your App.
Additional context
Module to do this (in bslib):
The text was updated successfully, but these errors were encountered: