cf_field_to_css: How to export a cf_field to CSS

View source: R/render_html.R

cf_field_to_cssR Documentation

How to export a cf_field to CSS

Description

This method is exported so package users can generate their own rules

Usage

cf_field_to_css(cf_field, xview, css_fields, unlocked)

Arguments

cf_field

A cf_field object. This is like a rule, but with the computed colour values. It usually maps one-to-one to a CSS field.

xview

A data frame with the columns to be printed and rows filtered

css_fields

A list of matrices. The names of the list are CSS attributes and each matrix is of the size of xview and contains the respective CSS values.

unlocked

A logical matrix of cells unlocked (that can still be modified by further rules).

Value

A list with two elements: css_fields and unlocked (with updated values)


condformat documentation built on Oct. 8, 2023, 9:07 a.m.