HTable_row_alt_bg_color: Add an alternating background color style to all rows

Description Usage Arguments

Description

Add an alternating background color style to each <td> and, optionally, <th> tag. The odd rows get the background color color1 and the evens get the background color color2. Changes the styles field.

Usage

1
obj$row_alt_bg_color(color1 = NULL, color2 = NULL, include_header = FALSE)

Arguments

color1

Character vector (length 1) of an HTML color name, hex color code, or rgb color of the form rgb(x, y, z).

color2

Character vector (length 1) of an HTML color name, hex color code, or rgb color of the form rgb(x, y, z).

include_header

Boolean if the header should also be given a background color.


fazetu/htable documentation built on Feb. 12, 2020, 10:13 a.m.