sprinkle_border_collapse: Change the Border Collapse Property in a Dust Table

Description Usage Arguments Details Functional Requirements Author(s) Source See Also

View source: R/sprinkle_border_collapse.R

Description

The border_collapse property controls the appearance of cell borders in HTML tables. Be default, pixiedust collapses the borders so that the adjoining border of two cells appear as a single border.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
sprinkle_border_collapse(
  x,
  border_collapse = getOption("pixie_border_collapse", "collapse"),
  ...
)

## Default S3 method:
sprinkle_border_collapse(
  x,
  border_collapse = getOption("pixie_border_collapse", "collapse"),
  ...
)

## S3 method for class 'dust_list'
sprinkle_border_collapse(
  x,
  border_collapse = getOption("pixie_border_collapse", "collapse"),
  ...
)

Arguments

x

An object of class dust

border_collapse

character(1). Defaults to "collapse", and may accept any of "collapse", "separate", "initial", or "inherit".

...

Additional arguments to pass to other methods. Currently ignored.

Details

See https://www.w3schools.com/cssref/pr_border-collapse.asp for details on how each option affects the appearance of a table.

This property has no effect on non-HTML output.

Functional Requirements

  1. Change the border_collapse attribute of the dust object.

  2. Cast an error if x is not a dust object.

  3. Cast an error if border_collapse is not one of "collapse", "separate", "initial", "inherit".

Author(s)

Benjamin Nutter

Source

https://www.w3schools.com/cssref/pr_border-collapse.asp

See Also

dust, sprinkle


pixiedust documentation built on Jan. 16, 2021, 5:25 p.m.