inst/shinydemos/selectable_bookmarking.R

library(shiny)
library(shinyjqui)

ui <- function(request) {fluidPage(
  bookmarkButton(),
  selectableTableOutput("tbl", selection_mode = "cell"),
  verbatimTextOutput("selected")
)}

server <- function(input, output) {
  output$selected <- renderPrint({
    cat("Selected:\n")
    input$tbl_selected
  })
  output$tbl <- renderTable(head(mtcars), rownames = TRUE)
  jqui_bookmarking()
}

enableBookmarking(store = "url")

shinyApp(ui, server)

Try the shinyjqui package in your browser

Any scripts or data that you put into this service are public.

shinyjqui documentation built on Feb. 3, 2022, 9:06 a.m.