R/utils_ui.R

Defines functions make_pull_down_menu

Documented in make_pull_down_menu

#' utils_ui.R These are helper functions for ui code,
#' shiny code can go in this file
#'
#'
#' @section utils_ui.R functions:
#' \code{make_pull_down_menu} makes it easy to make pull down menu
#'
#'
#' @name utils_ui.R
NULL


#' Create a pull down menu
#'
#' @param funs List of functions
#'
#'
#' @return names of a set
#'
make_pull_down_menu <- function(funs) {
  return(setNames(1:length(funs), names(funs)))
}
espors/idepGolem documentation built on Oct. 27, 2024, 4:56 a.m.