powered by
The keyboard shortcuts and rewind_buttons() are sufficient for most applications. Use these functions to move through the history from your own controls.
rewind_buttons()
rewind_undo(session = shiny::getDefaultReactiveDomain())rewind_redo(session = shiny::getDefaultReactiveDomain())rewind_jump(index, session = shiny::getDefaultReactiveDomain())rewind_clear(session = shiny::getDefaultReactiveDomain())
rewind_redo(session = shiny::getDefaultReactiveDomain())
rewind_jump(index, session = shiny::getDefaultReactiveDomain())
rewind_clear(session = shiny::getDefaultReactiveDomain())
TRUE if the position changed. If not, FALSE. The functions return the value invisibly.
TRUE
FALSE
The Shiny session. The default is the current session.
The position to move to. The first position is 1. Position 1 holds the oldest entry that rewind keeps.
rewind
if (interactive()) { library(shiny) server <- function(input, output, session) { rewind_enable() observeEvent(input$my_back_button, rewind_undo()) } }
Run the code above in your browser using DataLab