Skip to contents

Create a page a with CSS grid layout

Usage

gridPage(..., 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/complete-guide-grid/ for additional details on using css grids

See also

gridPanel()

Other grid functions: gridPanel()

Examples

if (interactive()) {
library(imola)
gridPage(
  title = "A grid page",
  areas = c("area-1 area-1", "area-2 area-3"),
  div(class = "area-1"),
  div(class = "area-2"),
  div(class = "area-3")
)
}