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 programmatically reorder elements in jqui_sortable without recreating them #99

Open
stevepowell99 opened this issue Jan 25, 2024 · 0 comments

Comments

@stevepowell99
Copy link

hi, is there something like update_sortable()? If I already have an element like

foo<-jqui_sortable(tags$ul(
  id = 'lst',
  tags$li('A'),
  tags$li('B'),
  tags$li('C')
))

I would like to be able to change the order e.g. update_sortable(id=foo,order=c(2,1,3,4)). I know I can recreate foo by reordering the list, but I don't want to recreate it, as the members of the list are computationally expensive to create.

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