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

How to undo / remove a draged element for orderInput? #16

Closed
happyshows opened this issue Jan 19, 2018 · 3 comments
Closed

How to undo / remove a draged element for orderInput? #16

happyshows opened this issue Jan 19, 2018 · 3 comments

Comments

@happyshows
Copy link

Hi,

I'm wondering if user make a mistake on dragging from source to dest, how does s/he fix the issue without refresh the application?

@Yang-Tang
Copy link
Owner

Hi @happyshows , sorry for the late reply.
Thank you for the good suggestion! It's not possible currently. I'm now trying to make this possible together with issue #12 . But there seem to be many problems to solve. It's absolutely doable but may take some time...

@Yang-Tang
Copy link
Owner

The save/load feature, which has been enabled since version 0.3.0, can solve the problem, so I will close this issue.

@MayaGans
Copy link

Would you mind expanding on how to use the save/load feature in this context given the code:

server <- function(input, output) {
  output$order <- renderPrint({ print(input$dest_order) })
}

ui <- fluidPage(
  orderInput('source', 'Source', items = month.abb,
             as_source = TRUE, connect = 'dest'),
  orderInput('dest', 'Dest', items = NULL, placeholder = 'Drag items here...'),
  verbatimTextOutput('order')
)

shinyApp(ui, server)

Thank you so much for this amazing package!

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

3 participants