editableDTUI {editData} | R Documentation |
UI of editableDT Shiny module
Description
UI of editableDT Shiny module
Usage
editableDTUI(id)
Arguments
id |
A string |
Examples
# Only run examples in interactive R sessions
if (interactive()) {
library(shiny)
ui=fluidPage(
selectInput("select","select",choices=c("mtcars","iris","sampleData")),
textInput("mydata","mydata",value="mtcars"),
hr(),
editableDTUI("editableDT"),
hr(),
verbatimTextOutput("test")
)
server=function(input,output,session){
data=reactive({
myget(input$mydata)
})
observeEvent(input$select,{
updateTextInput(session,"mydata",value=input$select)
})
result=callModule(editableDT,"editableDT",data=data)
output$test=renderPrint({
str(result())
})
}
shinyApp(ui=ui,server=server)
}
[Package editData version 0.1.8 Index]