gridPage: Create a page a with CSS grid layout

Description Usage Arguments Value Note See Also Examples

View source: R/grid_page.R

Description

Create a page a with CSS grid layout

Usage

1
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: flexPanel(), gridPanel()

Examples

1
2
3
4
5
6
7
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")
)

pedrocoutinhosilva/shiny.grid documentation built on Nov. 18, 2021, 8:26 p.m.