stylecode: Defines the css style for a table

Description Usage Arguments Value Examples

View source: R/stylecode.R

Description

Defines the css style for a table

Usage

1
2
3
4
5
6
7
stylecode(name, colh = "#B8B8B8", colh.text = "#111111", col = "#F0F0F0",
  col.text = "#111111", border.col = "gray55", border.wt = 1,
  border.style = "solid", font.size = c(18, 16), lineheight = 1.3,
  hfont.wt = 200, borderh.wt = 2, borderh.col = "#CC0000",
  borderh.style = "none", text.align = "left", htext.align = "left",
  borderb.wt = 1, borderb.col = "#CCCCCC", borderb.style = "none",
  pad = c(3, 3, 12, 3), padh = c(3, 3, 12, 3), collapse = "collapse")

Arguments

name

The unique id for the style to be referenced by tablecode()

colh

The color of the header

colh.text

The color of the text in the header

col

The background color

col.text

The color of text

border.col

Border color

border.wt

Border weight - needs to be an integer

border.style

The style of border. Options are none, hidden, solid, dotted, double, dashed, groove, ridge, inset, outset

font.size

a vector of font sizes for i) header ii) cells

lineheight

The height of rows

hfont.wt

The weight of the font in the header options are normal, bold, bolder, lighter, or can be a number (usually between 100-900, default is 200).

borderh.wt

Border at bottom of header weight - needs to be an integer

borderh.col

Border at bottom of header color

borderh.style

The style of border at bottom of header. Options are same as for border.style

text.align

The alignment of the cell text are left, center, right, justify

htext.align

The alignment of the header text are left, center, right, justify

borderb.wt

Border weight at bottom of rows

borderb.col

Border color at bottom of rows

borderb.style

The style of border at the bottom of cells. Options are same as for border.style

pad

The padding around borders of cells.

padh

The padding around borders of header.

collapse

The border collapse style - can be collapse, separate, initial

Value

A css style

Examples

1
2
stylecode(name="uniqueid")
tablecode(paintings, tabletype="uniqueid", width="80%")

jalapic/simpletable documentation built on May 18, 2019, 11:18 a.m.