A bucket list can contain more than one rank_list and allows drag-and-drop of items between the different lists.

bucket_list(
...,
group_name,
group_put_max = rep(Inf, length(labels)),
options = sortable_options(),
class = "default-sortable",
orientation = c("horizontal", "vertical")
)

## Arguments

header Text that appears at the top of the bucket list. (This is encoded as an HTML 

tag, so not strictly speaking a header.) One or more specifications for a rank list, and must be defined by add_rank_list. Passed to SortableJS as the group name. Also the input value set in Shiny. (input[[group_name]]) Not yet implemented Options to be supplied to sortable_js object. See sortable_options for more details A css class applied to the bucket list and rank lists. This can be used to define custom styling. Either horizontal or vertical, and specifies the layout of the components on the page.

## Value

A list with class bucket_list

rank_list

## Examples

## -- example-bucket-list ---------------------------------------------

## bucket list

bucket_list(
header = "This is a bucket list. You can drag items between the lists.",
text = "Drag from here",
labels = c("a", "bb", "ccc")
),
text = "to here",
labels = NULL
)
)

## bucket list with three columns

bucket_list(
header = c("Sort these items into Letters and Numbers"),
text = "Drag from here",
labels = sample(c(1:3, letters[1:2]))
),
}