Description Usage Arguments Examples
View source: R/get_selected_data.R
This function is used to get the data selected in excel table
1 | get_selected_data(excelObj)
|
excelObj |
the json data retuned from excel table |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if(interactive()){
library(shiny)
library(excelR)
shinyApp(
ui = fluidPage(excelOutput("table")),
server = function(input, output, session) {
output$table <-
renderExcel(excelTable(data = head(iris), getSelectedData = TRUE))
observeEvent(input$table,{
print(get_selected_data(input$table))
})
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.