overflow: Overflow

Description Usage Arguments Examples

View source: R/overflow.R

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

1
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

1
2
3
4
5
6
7
8
library(htmltools)

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

cascadess documentation built on Jan. 13, 2021, 5:10 p.m.