Skip to contents

The overflow_*() functions adjust how an element's content scrolls.

Usage

overflow_all(x, behavior)

overflow_horizontal(x, behavior)

overflow_vertical(x, behavior)

Arguments

x

A tag element or .style pronoun.

behavior

A character string specifying the content overflow behavior. One of,

  • "auto"

  • "hidden"

  • FALSE

  • "visible"

  • "scroll"

  • TRUE

Value

An object of the same type as x.

Examples


library(htmltools)

div(
  .style %>%
    width_relative(25) %>%
    overflow_horizontal("hidden"),
  "We've really got to drag on this sentence because if we don't",
  "then the example does not demonstrat the utility of the overflow",
  "function"
)
#> <div class="w-25 overflow-x-hidden">
#>   We've really got to drag on this sentence because if we don't
#>   then the example does not demonstrat the utility of the overflow
#>   function
#> </div>