rstudio / sortable

R htmlwidget for Sortable.js
https://rstudio.github.io/sortable/
Other
130 stars 30 forks source link

Need a way to update the labels in rank_list #47

Closed quantitative-technologies closed 4 years ago

quantitative-technologies commented 4 years ago

For my app, I need a rank_list where the labels are determined at run-time. However, it only seems to be able to handle a character vector that is defined before the app starts.

Is there a way to update the labels of a rank_list?

andrie commented 4 years ago

It sounds to me you want to build a dynamic UI.

I suspect that rank_list() is not different from any other Shiny object, and hopefully the article points you in the right direction.

quantitative-technologies commented 4 years ago

Yes, that was what I needed. It works fine with rank_list().