create a border properties object.

borderProperties(color = "black", style = "solid", width = 1)

# S3 method for borderProperties
chprop(object, color, style, width, ...)

# S3 method for borderProperties
print(x, ...)

# S3 method for borderProperties
as.character(x, ...)

Arguments

color

border color - single character value (e.g. "#000000" or "black")

style

border style - single character value : "none" or "solid" or "dotted" or "dashed"

width

border width - an integer value : 0>= value

object

borderProperties object to update

...

further arguments - not used

x

borderProperties object to print

Details

Get a modified version of a borderProperties with chprop.

See also

alterFlexTable, setFlexTableBorders, shortcut_properties

Examples

borderProperties()
#> borderProperties{color: rgba(0,0,0,1.00) ;style: solid ;width: 1 ;}
borderProperties(color="orange", style="solid", width=1)
#> borderProperties{color: rgba(255,165,0,1.00) ;style: solid ;width: 1 ;}
borderProperties(color="gray", style="dotted", width=1)
#> borderProperties{color: rgba(190,190,190,1.00) ;style: dotted ;width: 1 ;}
# update borderProperties -------- x = borderProperties() chprop(x, color="orange", style="dashed", width=1)
#> borderProperties{color: rgba(255,165,0,1.00) ;style: dashed ;width: 1 ;}
chprop(x, width=5)
#> borderProperties{color: rgba(0,0,0,1.00) ;style: solid ;width: 5 ;}