I have built the following template for my shiny app.
##ui.R
shinyUI(navbarPage("My Application",
tabPanel
(
"Select Data range",
sidebarLayout
(
sidebarPanel
(
h3("Select Data Range"),
selectInput("select", label = h3("Select Sector"),choices = list("Sector 1" = 1, "Sector 2" = 2,"Sector 3" = 3), selected = 1),br(),
dateRangeInput("dates", label = h3("Select Date range")),br(),
submitButton("Submit"),br(),
actionButton("action", label = "Proceed to select resolution")
),
mainPanel("Output")
)
),
tabPanel
(
"Select Resolution",
sidebarLayout
(
sidebarPanel
(
h3("Select Resolution"),
numericInput("num", label = h3("Select X-Grid Size"), value = 2),br(),
numericInput("num", label = h3("Select Y-Grid Size"), value = 2),br(),
numericInput("num", label = h3("Outlier Removal"), value = 2),br(),
numericInput("num", label = h3("Frequency"), value = 2),br(),
submitButton("Submit"),br(),
#actionButton("action", label = "Proceed to Service Parameters")
),
mainPanel("Output")
)
)
))
And the server file is kept empty for now:
##server.R
shinyServer(function(input, output) {
})
The problem is ideally I would like to use a input like action button on first tabPanel to navigate to second tab panel. Any suggestion about an alternative would be appreciated equally.