0

I'm using pageWithSidebar with a sidebar on the left. Now I'd like to add button on the top right side of the page. How could I achieve this? http://shiny.rstudio.com/reference/shiny/latest/pageWithSidebar.html I found dashboard but the structure doesn't look the sames as regular shiny. https://rstudio.github.io/shinydashboard/structure.html

  navbarPage(
title = 'DataTable Options',
tabPanel('Display length',     DT::dataTableOutput('ex1')),
tabPanel('Length menu',        DT::dataTableOutput('ex2')),
tabPanel('No pagination',      DT::dataTableOutput('ex3')),
tabPanel('No filtering',       DT::dataTableOutput('ex4')),
tabPanel('Function callback',  DT::dataTableOutput('ex5'))
)pageWithSidebar(
 headerPanel("test"),
  sidebarPanel(
textInput("globalSearch", "Search", "")))
noblabla
  • 113
  • 1
  • 13
  • Please show your attempt at the problem – Pork Chop Jul 05 '16 at 08:32
  • It seems pageWithSidebar can't be used in junction with a navbar. I would like to be able to add buttons on the right top corner of the page and keep a permanent left sidebar. – noblabla Jul 05 '16 at 08:40
  • Have a look at the example here http://stackoverflow.com/questions/28967949/add-a-twitter-share-button-to-shiny-r-navbar – Pork Chop Jul 05 '16 at 10:20
  • @PorkChop Can you have pageWithSidebar and navbarPage at the same time? because it doesn't launch properly in my case – noblabla Jul 05 '16 at 10:44
  • Is there a particular need for you to use both? It doesn't feel right to me to be a preferred structure going forward. You can do most things with just one type of page – Pork Chop Jul 05 '16 at 12:11
  • yes, I would like to have some secondary buttons on the right corner and leave the sidebar for the main features – noblabla Jul 05 '16 at 12:21

0 Answers0