View source: R/widget-containers.R
| vertical | R Documentation |
vertical() stacks its children top to bottom; horizontal() places
them side by side. By default a vertical container fills the available
space, and a horizontal container is as tall as its tallest child.
vertical(..., id = NULL, classes = NULL, style = NULL)
horizontal(..., id = NULL, classes = NULL, style = NULL)
... |
Child widgets. |
id |
Optional identifier (for |
classes |
Optional classes (for |
style |
A |
Children sized "auto" take their natural size, fixed sizes are exact,
and "1fr", "2fr", ... share the remaining space. Use style(align =, valign =) on the container to position children that do not fill it.
A Vertical or Horizontal widget.
ui <- vertical(
label("Title"),
horizontal(label("left"), label("right"))
)
render_widget(ui, 20, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.