Learn R Programming

cascadess (version 0.1.0)

overflow: Overflow

Description

The overflow() function adjust how an element's content scrolls. Scrolling an element's contents may be helpful to prevent child elements from extending the height or width of the element. The height of the element must be set.

Usage

overflow(x, scroll)

Arguments

x

A tag element or .style pronoun.

scroll

One of "auto", "hidden", "visible", or "scroll" specifying how the content of the element scrolls. TRUE and FALSE may be used in place of "scroll" or "hidden", respectively.

Examples

Run this code
# NOT RUN {
library(htmltools)

div(
  .style %>%
    width(25) %>%
    overflow(FALSE),
  "Nullam libero mauris, consequat quis, varius et, dictum id, arcu."
)

# }

Run the code above in your browser using DataLab