Similar/related questions in this forum and stackoverflow but none answer my question.
Trying to Implement conditionalPanel with tabsetPanel in ui.R.
Having trouble implementing a "submitButton-like" action for each conditional panel:
## ui.R ##
shinyUI(fluidPage(
titlePanel("...."),
sidebarLayout(
sidebarPanel(
conditionalPanel(
condition = "input.tabs == 'tab_a'",
selectInput(.....),
selectInput(.....),
radioButtons(....),
sliderInput(....),
#?? submitButton("button label A", icon("refresh"))
# or ?? actionButton("button label A", "TAB A" )
),
conditionalPanel(
condition = "input.tabs == 'tab_b'",
selectInput(....),
selectInput(....),
sliderInput(...),
# ?? submitButton("button label B;", icon("refresh"))
# or ?? actionButton("button label B", "TAB B" )
) ),
mainPanel(
tabsetPanel(id = "tabs",
tabPanel("TAB A", plotOutput(...), value = "tab_a"),
tabPanel("TAB B", plotOutput(...), value = "tab_b") )))))
Ive tried every variation of submitButton & actionButton I can think of.
Any ideas how to implement a submitButton-like action for/in each conditional panel?
Thanks in advance.