Description Usage Arguments Examples
This function is used to add comment to the specified cell
1 | setComments(tableId, cellId, comment)
|
tableId |
the id of the table for which the comment is to be added |
cellId |
the id of the cell for which the comment is to be added |
comment |
the comment that is to be added to the cell |
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", height = 175),
actionButton('comment', 'Set Comments to cell A1')),
server = function(input, output, session) {
output$table <- renderExcel(excelTable(data = head(iris)))
observeEvent(input$comment,{
setComments("table", "A1", "This is a comment")
})
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.