Reputation: 899
I am attempting to use shinyDND from the server side using uiOuput, renderUI and dragUI but the divs created are not draggable. Example:
library(shiny)
library(shinyDND)
ui <- shinyUI(
mainPanel(
uiOutput("myUI"),
dragUI("works","works")
)
)
server = shinyServer(function(input, output,session) {
output$myUI <- renderUI({
dragUI("doesntwork","doesntwork")
})
})
# Run the application
shinyApp(ui = ui, server = server)
The dragUI element being created within the renderUI function is visible but not draggable. The dragUI element in the ui function is fine.
Any ideas?
Upvotes: 0
Views: 350