diff --git a/DESCRIPTION b/DESCRIPTION index c58359d..ad0657f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -29,7 +29,7 @@ Suggests: scales, tinytest VignetteBuilder: knitr -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Roxygen: list(markdown = TRUE) URL: https://dreamrs.github.io/toastui/ BugReports: https://github.com/dreamRs/toastui/issues diff --git a/examples/ex-cal_props.R b/examples/ex-cal_props.R index 5d20af0..6f94075 100644 --- a/examples/ex-cal_props.R +++ b/examples/ex-cal_props.R @@ -1,22 +1,20 @@ library(toastui) # Define theme for schedules -calendar(cal_demo_data()) %>% +calendar(cal_demo_data()[, -c(9, 10, 11)]) %>% cal_props( list( - id = 1, + id = "1", name = "PERSO", - color = "white", - bgColor = "steelblue", - borderColor = "steelblue" + color = "lightblue", + backgroundColor = "purple", + borderColor = "magenta" ), list( - id = 2, + id = "2", name = "WORK", - color = "white", - bgColor = "forestgreen", - borderColor = "forestgreen" + color = "red", + backgroundColor = "yellow", + borderColor = "orange" ) ) - - diff --git a/man/cal_props.Rd b/man/cal_props.Rd index ba2de1a..1333278 100644 --- a/man/cal_props.Rd +++ b/man/cal_props.Rd @@ -23,23 +23,21 @@ Define calendar properties for grouping schedules under common theme. library(toastui) # Define theme for schedules -calendar(cal_demo_data()) \%>\% +calendar(cal_demo_data()[, -c(9, 10, 11)]) \%>\% cal_props( list( - id = 1, + id = "1", name = "PERSO", - color = "white", - bgColor = "steelblue", - borderColor = "steelblue" + color = "lightblue", + backgroundColor = "purple", + borderColor = "magenta" ), list( - id = 2, + id = "2", name = "WORK", - color = "white", - bgColor = "forestgreen", - borderColor = "forestgreen" + color = "red", + backgroundColor = "yellow", + borderColor = "orange" ) ) - - }