appResetButton | R Documentation |
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)
id |
character id for the object |
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.
an html div with prettyToggle button
Initial state label is "Application Reset" with warning status
Reloading state label is "Cancel Application Reset" with danger status
Call this function at any place in UI section.
It is paired with a call to appReset(id, ...)
in server
appReset
downloadFile
downloadFile_ValidateTypes
downloadFile_AvailableTypes
downloadablePlot
downloadFileButton
downloadableTable
logViewerOutput
if (interactive()) {
library(shiny)
library(periscope2)
shinyApp(
ui = fluidPage(fluidRow(column(12, appResetButton(id = "appResetId")))),
server = function(input, output) {
appReset(id = "appResetId", logger = "")
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.