pre: Scrollable code snippets

Description Usage Arguments See Also Examples

View source: R/components.R

Description

The pre function adds a maximum height and scroll bar to the standard <pre> element.

Usage

1

Arguments

...

Text, tag elements, or named arguments passed as HTML attributes to the tag.

See Also

Other components: alert(), badge(), blockquote(), card(), collapsePane(), d1(), dropdown(), img(), jumbotron(), modal(), navContent(), popover(), toast()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
### Simple example

pre(
  "shinyApp(",
  "  ui = container(",
  "    columns(",
  "      column(",
  "      ",
  "      )",
  "    )",
  "  )",
  "  server = function(input, output) {",
  "  ",
  "  }",
  ")"
)

yonder documentation built on Jan. 11, 2020, 9:35 a.m.