Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copySource in dragulaInput not working #278

Open
furrrpanda opened this issue Oct 25, 2024 · 0 comments
Open

copySource in dragulaInput not working #278

furrrpanda opened this issue Oct 25, 2024 · 0 comments

Comments

@furrrpanda
Copy link

If I understand correctly setting copySource = FALSE would allow the user to copy for example Jan top Target1 and Target2 but when I drag one of the sources to Target1, it on gone from the source.

library(shiny)
library(esquisse)

ui <- fluidPage(
  tags$h2("Demo dragulaInput"),
  tags$br(),
  fluidRow(
    column(
      width = 6,
      
      dragulaInput(
        inputId = "dad1",
        label = "Default:",
        sourceLabel = "Source",
        targetsLabels = c("Target 1", "Target 2"),
        choices = month.abb,
        copySource = FALSE,
        width = "100%"
      ),
      verbatimTextOutput(outputId = "result1")

    )
  )
)


server <- function(input, output, session) {
  
  output$result1 <- renderPrint(str(input$dad1))
  
  
}

if (interactive())
  shinyApp(ui = ui, server = server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant