library(flexdashboard) library(shinyjqui)
output$selected_context <- renderPrint({ cat("Selected:\n") input$tbl_selected }) output$selected_start <- renderPrint({ cat("Selected:\n") input$tbl_selected_start }) output$selected_render <- renderPrint({ cat("Selected:\n") input$tbl_selected_render }) output$tbl <- renderTable(head(mtcars), rownames = TRUE)
selectableTableOutput("tbl", selection_mode = "cell")
verbatimTextOutput("selected_context")
verbatimTextOutput("selected_start")
verbatimTextOutput("selected_render")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.