R/item.R

Defines functions item

Documented in item

#' The item card used in the trailers
#' application to display the items selected
#'
#'
#' @param img The image location for the UI
#' @param pos The numeric position of the UI card
#'
#' @export



item <- function(img, pos) {
  shiny::HTML(paste0(
    '<div class="card">
              <img src="',
    img,
    '" style="width:100%">
    <p>',pos,'</p>
              </div>'
  ))
}
HarryRosen/hrimodules documentation built on Jan. 11, 2022, 12:36 a.m.