flexPage: Create a page a with CSS flexbox layout

Description Usage Arguments Value Note See Also Examples

View source: R/flex.R

Description

Create a page a with CSS flexbox layout

Usage

1
flexPage(..., title = NULL, fill_page = TRUE, dependency = bootstrapLib())

Arguments

...

Elements to include within the page

title

The browser window title (defaults to the host URL of the page)

fill_page

Flag to tell the page if it should adjust the page to adjust and fill the browser window size

dependency

The set of web dependencies. This value can be a htmlDependency, for example the shiny bootstrap one (the default) or a tagList with diferent dependencies

Value

A UI definition that can be passed to the [shinyUI] function.

Note

See https://css-tricks.com/snippets/css/a-guide-to-flexbox/ for additional details on using css flexbox

See Also

[flexPanel()]

Examples

1
2
3
4
5
6
7
8
9
if (interactive()) {
library(imola)
flexPage(
  title = "A flex page",
  div(class = "area-1"),
  div(class = "area-2"),
  div(class = "area-3")
)
}

imola documentation built on Nov. 18, 2021, 1:11 a.m.

Related to flexPage in imola...