Nothing
border_include_values <- chr(
"TRUE" = "",
"FALSE" = "0"
)
#' Add or remove borders
#'
#' The `border_all()` and `border_<side>()` functions adjust a tag element's
#' borders.
#'
#' @param x `r param_subject()`
#'
#' @param include A boolean specifying to include a side. One of,
#'
#' `r rd_bullets(names(border_include_values))`
#'
#' Defaults to `r rd_default(border_all, include)`.
#'
#' @returns `r returns_same("x")`
#'
#' @family border
#' @export
#'
#' @include theme.R
#' @examples
#'
#' library(htmltools)
#'
#' h3(
#' .style %>%
#' border_bottom() %>%
#' border_color(theme_warning()) %>%
#' text_color(theme_warning()),
#' "Warning"
#' )
#'
border_all <- function(x, include = TRUE) {
add_class(
x,
compose_class(
"border",
border_include_values,
include
)
)
}
#' @rdname border_all
#' @export
border_top <- function(x, include = TRUE) {
add_class(
x,
compose_class(
"border-top",
border_include_values,
include
)
)
}
#' @rdname border_all
#' @export
border_right <- function(x, include = TRUE) {
add_class(
x,
compose_class(
"border-right",
border_include_values,
include
)
)
}
#' @rdname border_all
#' @export
border_bottom <- function(x, include = TRUE) {
add_class(
x,
compose_class(
"border-bottom",
border_include_values,
include
)
)
}
#' @rdname border_all
#' @export
border_left <- function(x, include = TRUE) {
add_class(
x,
compose_class(
"border-left",
border_include_values,
include
)
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.