Learn R Programming

yonder (version 0.0.5)

scroll: Vertical and horizontal scroll

Description

Many of the applications you build depsite a complex layout will still fit onto a single page. To help scroll long content along side shorter content use the scroll() utility function.

Usage

scroll(.tag, direction = "y")

Arguments

.tag

A tag element.

direction

One of "x" or "y" specifying which direction to scroll the tag's content, defaults to "y", in which case vertical scroll is applied.

See Also

Other design: active, affix, background, border, display, float, font, height, padding, shadow, width

Examples

Run this code
# NOT RUN {
### A simple scroll

div(
  lapply(
    rep("Integer placerat tristique nisl.", 20),
    p
  )
) %>%
  height(20) %>%
  border() %>%
  scroll()

# }

Run the code above in your browser using DataLab