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
)
)
It would be useful to be able to insert any object into the bucketable_list, so the API becomes:
bucketable_list(
text = "",
...
)
Where the ... can be replaced by one or more sortable_list() calls.
This would require either:
intercept the call and modify the call, or
modify the (deeply nested) list constructed by sortable_list().
I experimented with both approaches and came to the conclusion:
is dangerous, because the user may have constructed the call in any of a number of ways
is very difficult, since the underlying structure of the sortable_list can easily change in future versions, so knowing exactly where to modify the list is hard.
Continued from #17 .
The current API is:
It would be useful to be able to insert any object into the
bucketable_list
, so the API becomes:Where the
...
can be replaced by one or moresortable_list()
calls.This would require either:
sortable_list()
.I experimented with both approaches and came to the conclusion:
sortable_list
can easily change in future versions, so knowing exactly where to modify the list is hard.@schloerke is going to look at this.