Hi all,
How do i retrieve the Values of the labels from a sortable bucket_list?
This chunk creates a dynamic number of lists in a module.
output$ClusterToGates <- renderUI({
rank_list_items <- lapply(1:input$NoOfBeads, function(i) {
#
#print(paste0(ns("Gate"),i))
sortable::add_rank_list(
text = paste0("Gate No: ", i),
labels = NULL,
input_id = paste0(ns("Gate"), i),
options = sortable::sortable_options(multiDrag = TRUE)
)
})
isolate(r$gates <- list())
isolate(for (id in 1:input$NoOfBeads) {
#print(id)
gateID <- paste0(ns("Gate"), id)
r$gates <- c(r$gates, paste0(ns("Gate"), id))
})
rank_list_Overview <-
list(
sortable::add_rank_list(
text = "Clusters to ignore",
labels = r$clusterInfos,
input_id = paste(ns("Overview")),
options = sortable::sortable_options(multiDrag = TRUE)
)
)
rank_list_Total <-
append(rank_list_Overview, rank_list_items)
do.call(
sortable::bucket_list,
args = c(
header = "Drop the Clusters in the corresponding Gate",
group_name = ns("GateBucketList"),
#options = sortable::sortable_options(multiDrag = TRUE),
rank_list_Total
)
)
})
when i try to retrieve the labels using
input$GateBucketList
I only get a list of indices not the actual value of the label.
How to i retrieve the values directly?
$`calibration_1-Overview`
[1] "1" "2"
$`calibration_1-Gate1`
[1] "4" "5" "3"