Skip to content

Instantly share code, notes, and snippets.

@shannonpileggi
Last active February 13, 2021 04:53
Show Gist options
  • Save shannonpileggi/8fe72b091c73e1bc956ea092f2588d85 to your computer and use it in GitHub Desktop.
Save shannonpileggi/8fe72b091c73e1bc956ea092f2588d85 to your computer and use it in GitHub Desktop.
A demonstration of sortable html widget in shiny apps for R-Ladies
library(shiny)
library(sortable)
rladies_messages <- c(
"R-Ladies creates an inclusive and welcoming environment.",
"R-Ladies hosts workshops that help me advance my R programming skills.",
"R-Ladies provides a safe place for me to ask technical R questions.",
"R-Ladies provides a safe place for me to discuss work-related (but not R) topics.",
"R-Ladies facilitates networking opportunities.",
"R-Ladies helps me stay informed about new job opportunities.",
"R-Ladies helps me stay informed on upcoming workshops and conferences."
)
shinyApp(
ui = fluidPage(
sortable::bucket_list(
header = NULL,
group_name = "bucket_list_group",
sortable::add_rank_list(
text = "All R-Ladies Messages",
labels = rladies_messages,
input_id = "rank_list_1"
),
sortable::add_rank_list(
text = "Top R-Ladies Messages",
labels = NULL,
input_id = "rank_list_2"
)
)
),
server = function(input, output) {
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment