Defaults are used for new huxtables, and also when a property is set to NA
.
set_default_properties(...) get_default_properties(names = NULL)
... | Properties specified by name, or a single named list. |
---|---|
names | Vector of property names. If |
For set_default_properties
, a list of the previous property values, invisibly.
For get_default_properties
, a list of the current defaults.
Note that autoformat = TRUE
in huxtable()
overrides some defaults.
To set default border styles, use the pseudo-properties
border
/border_style
/border_color
. You cannot set defaults separately for
different sides.
Options for autoformat in huxtable-options.
#> ┌─────────┬─────────┐ #> │ a │ b │ #> ├─────────┼─────────┤ #> │ 1 │ 1 │ #> ├─────────┼─────────┤ #> │ 2 │ 2 │ #> └─────────┴─────────┘ #> #> Column names: a, bset_default_properties(old) get_default_properties("bold")#> $bold #> [1] FALSE #>