Skip to content

Commit

Permalink
updated cal_props example
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Jul 17, 2024
1 parent 44c09a1 commit f52ef35
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 9 additions & 11 deletions examples/ex-cal_props.R
Original file line number Diff line number Diff line change
@@ -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"
)
)


20 changes: 9 additions & 11 deletions man/cal_props.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f52ef35

Please sign in to comment.