overflow_all: Content overflow

View source: R/overflow-all.R

overflow_allR Documentation

Content overflow

Description

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"
)


cascadess documentation built on Oct. 30, 2024, 9:29 a.m.