grid_click {toastui} | R Documentation |
Click event (in shiny)
Description
Click event (in shiny)
Usage
grid_click(grid, inputId)
Arguments
grid |
A table created with |
inputId |
The |
Value
A datagrid
htmlwidget.
Examples
if (interactive()) {
library(shiny)
library(toastui)
ui <- fluidPage(
tags$h2("datagrid click"),
datagridOutput("grid"),
verbatimTextOutput("res")
)
server <- function(input, output, session) {
df <- data.frame(
index = 1:12,
month = month.name,
letters = letters[1:12]
)
output$grid <- renderDatagrid({
datagrid(df) %>%
grid_click(
inputId = "click"
)
})
output$res <- renderPrint({
input$click
})
}
shinyApp(ui, server)
}
[Package toastui version 0.3.3 Index]