Thanks for pointing out the new feature. I might be doing something wrong or not choosing the best way to implement my idea.
I am still struggling with control outputs based on input values. I want to display (1) "Thing1" when "A" checked and "go" clicked;(2) "Thing2" when "B" checked and "go" clicked; (3) show nothing if none of "A" and "B" checked; (4) "no update" if "go" was not clicked on.
Here is a simplified version of my codes, please forgive me on my conditionalPanel, it's very likely I wrote the wrong conditions with my barely nothing js knowledge.
ui.R
library(shiny)
library('shinyIncubator')
# Define UI for dataset viewer application
shinyUI(pageWithSidebar(
# Application title
headerPanel("Testing"),
# Sidebar with controls to create filters or generate query
sidebarPanel(
checkboxGroupInput("foo", "Choose", choices = list("A"=1, "B"=2), selected = 1)
, actionButton('ab','Go')
),
mainPanel(
conditionalPanel(
condition = "input.ab > 0 && ['A'].indexOf(input.foo) < 0"
, h4("Thing1")),
conditionalPanel(
condition = "input.ab > 0 && ['B'].indexOf(input.foo) < 0"
, h4("Thing2"))
)
))
server.R
library(shiny)
library('shinyIncubator')
shinyServer(function(input, output) {
})