input_rule | R Documentation |
Specifies if-then conditions for inputs; that is, when one input is changed, change another based on the entered conditions.
input_rule(condition, effects)
condition |
A string representing the condition (e.g., "input_a == 'a'"), with multiple conditions
separated by |
effects |
A list with names corresponding to input IDs, and values of what they should be set to. |
The entered condition and effects.
## Not run:
input_select("input_a", c("a", "b", "c"))
input_slider("input_b", c(0, 10))
input_rule("input_a == 'a' && input_b != 0", list(input_b = 10))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.