areaBasedRules: Generates a list of rules for a single grid attribute based...

Description Usage Arguments Value

View source: R/utils.R

Description

Generates a list of rules for a single grid attribute based on the given grid areas.

Usage

1
areaBasedRules(attribute, areas, default_value, default_rule)

Arguments

attribute

The grid attribute to generate rules for

areas

The grid areas to generate rules based on

default_value

The default css value for the size of one element

default_rule

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

Value

A list of attribute rules.


pedrocoutinhosilva/shiny.grid documentation built on Sept. 15, 2020, 5:52 p.m.