Description Usage Arguments See Also Examples
View source: R/control_buttons.R
Server-side function reset button.
1 | resetButton(input, output, session)
|
input |
Required for shiny modules' server functions. |
output |
Required for shiny modules' server functions. |
session |
Required for shiny modules' server functions. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Needs something like
## Not run:
reset <- callModule(resetButton, "reset")
observe({
reset()
updatePickerInput(session, "filter-product", selected = products)
updatePickerInput(session, "first-demo",
selected = as.character(
levels(factor(df[[firstDemoPick()]]))))
updatePickerInput(session, "second-demo",
selected = as.character(
levels(factor(df[[secondDemoPick()]]))))
})
## End(Not run)
# to go along with it in the primary code
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.