vertical_layout: Vertical layout

Description Usage Arguments Value Examples

View source: R/layouts.R

Description

Lays out elements vertically, one by one below one another.

Usage

1
2
3
4
5
6
7
8
vertical_layout(
  ...,
  rows_heights = NULL,
  cell_args = "",
  adjusted_to_page = TRUE
)

verticalLayout(..., fluid = NULL)

Arguments

...

Unnamed arguments will become child elements of the layout.

rows_heights

Character or numeric vector indicating the widths of the individual cells. Recycling will be used if needed.

cell_args

character with additional attributes that should be used for each cell of the layout.

adjusted_to_page

if TRUE it adjust elements position in equal spaces to the size of the page

fluid

not supported yet (here for consistency with shiny)

Value

vertical layout grid object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
if (interactive()) {
  ui <- semanticPage(
    verticalLayout(
      a(href="http://example.com/link1", "Link One"),
      a(href="http://example.com/link2", "Link Two"),
      a(href="http://example.com/link3", "Link Three")
    )
  )
  shinyApp(ui, server = function(input, output) { })
}
if (interactive()) {
  ui <- semanticPage(
    vertical_layout(h1("Title"), h4("Subtitle"), p("paragraph"), h3("footer"))
  )
  shinyApp(ui, server = function(input, output) { })
}

Example output

Attaching package:shiny.semanticThe following object is masked frompackage:graphics:

    grid

The following object is masked frompackage:utils:

    menu

shiny.semantic documentation built on Nov. 7, 2021, 5:07 p.m.