rstudio / sortable

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

On-Click #103

Open corey-dawson opened 1 year ago

corey-dawson commented 1 year ago

Hello, I was wondering if there is a simple "on-click" listener? I would like to have create a sortable list where a user could click the card to get more information (maybe via a shinyalert or modal), and also drag the card to re-order. The listener could return the text on the card that was clicked perhaps. Thanks in advance, Corey

andrie commented 1 year ago

You can find the documentation for the SortableJS library at https://github.com/SortableJS/Sortable

The onChoose event might be what you're looking for.