Dear all,
I am building an app that depends a lot on radion buttons and sliders. I would like to be able to enable disable (grey out?) those based on the current step of the user.
Do you have any idea how I can do that in Shiny?
An example of how my radion buttons and sliders look like below
I would like to thank you for your reply
Regards
Alex
sidebarLayout(
sidebarPanel(
radioButtons("FreqRadio", label = h3("Frequency"),
choices = list("485" = 485, "2600" = 2600,
"60000" = 3),selected = 2600),
radioButtons("EnvRadio", label = h3("Environment"),
choices = list("Urban" = "urban", "Suburban" = "suburban",
"Space" = 3),selected = "urban"),
selectInput("PropModel",
label = "Choose a Propagation Model",
choices = c("Log Distance", "Erceg HL/FM","Walfish-Ikegami", "Okumura-Hata", "COST 231", "Load"),
selected = "Percent White"),
sliderInput("maxDist",
"Maximum Distance [m]",
min = 10,
max = 400,
value = 300),
conditionalPanel(
condition = "input.EnvRadio == 'suburban' && input.FreqRadio == '485'",
sliderInput(
"TrainingPoints", "Number of Training Points",min=2,max=474,value=100,step=20
)),
# Only show this panel if Custom is selected
conditionalPanel(
condition = "input.EnvRadio == 'urban'|| input.FreqRadio == '2600'",
sliderInput("TrainingPoints", "Number of Training Points", min=2, max=924, value=200,step=20)
)
),