HTable_row_alt_color: Add an alternating text color style to all rows

Description Usage Arguments

Description

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

Usage

1
2
obj$row_alt_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 text color.


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