Creates a toggle button to reset application session. Upon pressing on the button, its state is flipped to cancel application reload with application and console warning messages indicating that the application will be reloaded.
appResetButton(id)
character id for the object
an html div with prettyToggle button
User can either resume reloading application session or cancel reloading process which will also generate application and console messages to indicate reloading status and result.
Call this function at any place in UI section.
It is paired with a call to appReset(id, ...)
in server
if (interactive()) {
library(shiny)
library(periscope2)
shinyApp(
ui = fluidPage(fluidRow(column(12, appResetButton(id = "appResetId")))),
server = function(input, output) {
appReset(id = "appResetId", logger = "")
})
}