gridTemplate: Create a grid template

View source: R/templates.R

gridTemplateR Documentation

Create a grid template

Description

Creates a imola template as an object for future use. Depending on the given type, the template will then be available to be used as an argument to a panel or page function of that specific type. Templates are collections of arguments that can be grouped and stored for later usage via the "template" argument of panel and page functions.

Usage

gridTemplate(
  name,
  type = c("grid", "flex"),
  ...,
  breakpoint_system = getBreakpointSystem(),
  description = NULL
)

Arguments

name

A string with the name that identifies the template.

type

The type of css grid for which the template can be used. Value must be either "grid" or "flex".

...

Collection of valid arguments that can be passed to a panel of the given type (see gridPanel and flexPanel for all options)

breakpoint_system

Breakpoint system to use.

description

Optional description with information. about the template. Can be used to pass on any additional relevant information (For example its origin or connected frameworks).

Value

A template object.


imola documentation built on April 19, 2022, 5:09 p.m.