How can I remove a link from this shiny part to parts that are located on other tabs / panels?
Update
The solution that I developed below works for the explicit case of binding to tabs / panels (and what I requested).
However, I would be interested to learn about more general ways to connect parts of a brilliant application.
Example
I want to associate panel A with panel B, but I'm not quite sure what I need to specify as an action when I click an action link in panel A.
The value #tab-4527-2 came from studying the HTML ui output, but I just saw that these values ββchange every time I restart the application.
library(shiny) # UI --------------------------------------------------------------------- ui <- fluidPage( tabsetPanel( tabPanel( "A", p(), actionLink("link_to_tabpanel_b", "Link to panel B") ), tabPanel( "B", h3("Some information"), tags$li("Item 1"), tags$li("Item 2") ) ) ) # Server ------------------------------------------------------------------ server <- function(input, output, session) { observeEvent(input$link_to_tabpanel_b, { tags$a(href = "#tab-4527-2") }) } shinyApp(ui, server)
html href r shiny hyperlink
Rappster
source share