Description Usage Arguments Value Examples
View source: R/create_pretty.R
This allow you to change colors of prettyCheckbox
,
prettyRadioButtons
1 2 3 4 5 6 7 8 9 |
output_file |
Specifies path to output file for compiled CSS. |
default |
Default color. |
primary |
Primary color. |
success |
Success color. |
info |
Info color. |
warning |
Warning color. |
danger |
Danger color. |
If output_file = NULL
, the function returns a string value of the compiled CSS.
If the output path is specified, the compiled CSS is written to that file and invisible()
is returned.
1 2 3 4 5 6 7 8 9 10 11 | # Temporary file
tmp <- file.path(tempdir(), "my-pretty.css")
# Create the new theme
create_pretty(
output_file = tmp,
primary = "#FFFF00"
)
# Clean
unlink(tmp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.