View source: R/calendar-props.R
cal_props | R Documentation |
Define calendar properties for grouping schedules under common theme.
cal_props(cal, ...)
cal |
A |
... |
Either named arguments to use as calendar properties or a
|
A calendar
htmlwidget.
library(toastui)
# Define theme for schedules
calendar(cal_demo_data()[, -c(9, 10, 11)]) %>%
cal_props(
list(
id = "1",
name = "PERSO",
color = "lightblue",
backgroundColor = "purple",
borderColor = "magenta"
),
list(
id = "2",
name = "WORK",
color = "red",
backgroundColor = "yellow",
borderColor = "orange"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.