Create a column within a UI definition

Share:

Description

Create a column for use within a fluidRow or fixedRow

Usage

1

Arguments

width

The grid width of the column (must be between 1 and 12)

...

Elements to include within the column

offset

The number of columns to offset this column from the end of the previous column.

Value

A column that can be included within a fluidRow or fixedRow.

See Also

fluidRow, fixedRow.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
library(shiny)

fluidRow(
  column(4,
    sliderInput("obs", "Number of observations:",
                min = 1, max = 1000, value = 500)
  ),
  column(8,
    plotOutput("distPlot")
  )
)

fluidRow(
  column(width = 4,
    "4"
  ),
  column(width = 3, offset = 2,
    "3 offset 2"
  )
)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.