R/golem_utils_ui.R

Defines functions col_4 col_5 col_10 col_12 rep_br

#' Repeat tags$br
#'
#' @param times the number of br to return
#'
#' @return the number of br specified in times
#' @noRd
#'
#' @importFrom htmltools HTML
rep_br <- function(times = 1) {
  HTML(rep("<br/>", times = times))
}


#' Columns wrappers
#'
#' These are convenient wrappers around
#' `column(12, ...)`, `column(6, ...)`, `column(4, ...)`...
#'
#' @noRd
#'
#' @importFrom shiny column
col_12 <- function(...) {
  column(12, ...)
}


#' @importFrom shiny column
#' @noRd
col_10 <- function(...) {
  column(10, ...)
}


#' @importFrom shiny column
#' @noRd
col_5 <- function(...) {
  column(5, ...)
}


#' @importFrom shiny column
#' @noRd
col_4 <- function(...) {
  column(4, ...)
}

Try the regexTestR package in your browser

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

regexTestR documentation built on Jan. 3, 2022, 5:12 p.m.