Skip to content
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

Use button_link of thumbnail_label to navigate to Tab of Shinydashboard #15

Closed
franciscopauloricardo opened this issue Sep 27, 2020 · 1 comment

Comments

@franciscopauloricardo
Copy link

Good morning,

Is it possible to use the "button link" of the thumbnail_label to link to a shinydashboard tab? I would like to use the landing page of ShinyLP as a quick way for the user to navigate for the indented tab.

#Sidebar
sidebar <- dashboardSidebar(

sidebarMenu(

menuItem("Home", tabName = "Home")
,menuItem("About", tabName = "aboutTab")

)#Fim de sidebarMenu

)#Fim de dashboardSidebar

body <- dashboardBody(

tabItems(

#Conteudo da Tab Home

tabItem(tabName = "Home"

,column(4, thumbnail_label(image = 'Rlogo.png', label = 'Spray Drying Search',
                                    content = 'Havana brown cornish rex bombay but bombay,
                                          but havana brown devonshire rex and devonshire rex.
                                          Tomcat egyptian mau. Cornish rex sphynx sphynx yet
                                          cougar and panther. Panther siberian. Lynx munchkin
                                          american shorthair. Norwegian forest. ',
                                    button_link = 'http://getbootstrap.com/', button_label = 'Click me')

)#End of tab Home



,tabItem(tabName = "aboutTab")#End of tab aboutTab

)#End of tabItems

)#End of dashboardBody

Kind regards,
Paulo

@jdumas-fastly
Copy link

Hi! I think you should be able to do that by specifying the link as:

button_link = 'https://YOUR_SHINY_SERVER_LOCATION/#shiny-tab-aboutTab'

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

No branches or pull requests

3 participants