I am currently working on centering both my tabs and header in my R Shiny page. I attempted to center them using div()
with class=span7
, but I encountered an error stating that an argument was missing.
shinyUI(fluidPage(
headerPanel("Header"),
mainPanel(
# Output: Tabset w/ headers ---
tabsetPanel(type = 'tabs',
tabPanel('Tab1'),
tabPanel('Tab2',
sidebarLayout(
sidebarPanel( # input
selectInput(id='tab2','Title',
choices=c('A','B','C','D')),
submitButton("Submit"),
width=4
),
mainPanel( # output
textOutput('text1')
)
)
)
)
)
))
Attempting to wrap the tabsetPanel()
inside a div()
using
div(
tabsetPanel(....),
class='span7'
)