getAttributeStyle: Generates all required css for the given css attribute based...

Description Usage Arguments Value

View source: R/utils.R

Description

Generates all required css for the given css attribute based on the grid rules provided.

Usage

1
2
3
4
5
6
7
8
getAttributeStyle(
  attribute,
  grid_id,
  grid_areas,
  css_target,
  css_base_value,
  css_base_rule
)

Arguments

attribute

The attribute details to create rules for.

grid_id

The id of the grid the rules will affect.

grid_areas

The target grid area details.

css_target

The equivalent css attribute name.

css_base_value

The default css value for the size of one element

css_base_rule

Function that returns a valid css value based on the css_base_value and the area details

Value

A string of value css rules.


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