rstudio / sortable

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

Make a bucketable list #17

Closed andrie closed 5 years ago

andrie commented 5 years ago

A bucketable problem is like sortable, except:

For example, a task can be:

This will be the first step towards a Parsons problem solution.

andrie commented 5 years ago

Request by @schloerke

use ... in bucketable_list that accepts sortable_list objects

andrie commented 5 years ago

My proposed new syntax is this:

bucketable_list(
  text = "This is a bucketable list. You can drag items between the lists.",
  group_name = "bucketable",
  add_sortable_list(
    text = "Drag from here",
    labels = c("a", "bb", "ccc")
  ),
  add_sortable_list(
    text = "to here",
    labels = NULL
  )
)
andrie commented 5 years ago

This functionality is now in the master branch (commit 6d9c6d57e2a968cf8603f999df58fc67843f8709), but @schloerke is investigating whether we can create an alternative API.