R/panel.R

Defines functions info_panel infoPanel

Documented in info_panel infoPanel

#' Creates a panel for all info boxes so they do not overlap
#'
#' @param ... calls with info elements
#' @param position character with position of the parameter. Default "top right".
#' @importFrom shiny tagList
#' @return div which wraps your all info boxes to display it in the position corner of your shiny app.
#' @export
info_panel <- function(..., position = "top right") {
  elements <- lapply(list(...), display, position = position)
  display(tagList(list = elements), position = position, type = "info_panel")
}

#' Wrapper for info_panel function
#'
#' @param ... calls with info elements
#' @param position character with position of the parameter. Default "top right".
#'
#' @return div which wraps your all info boxes to display it in the position corner of your shiny app.
#' @export
infoPanel <- function(..., position = "top right") { #nolint
 info_panel(..., position = position)
}

Try the shiny.info package in your browser

Any scripts or data that you put into this service are public.

shiny.info documentation built on March 23, 2020, 5:07 p.m.