Learn R Programming

toastui (version 0.4.0)

cal_theme: Calendar theme options

Description

Full configuration for theme. "common" prefix is for entire calendar. "common" properties can be overridden by "week", "month". "week" prefix is for weekly and daily view. "month" prefix is for monthly view.

Usage

cal_theme(cal, ..., .list = NULL)

Value

A calendar htmlwidget object.

Arguments

cal

A calendar() object.

...

Named arguments to customize appearance with CSS. See online documentation for full list of options.

.list

Alternative to ... for using a list.

Examples

Run this code
calendar(view = "month") %>%
  cal_theme(
    common.border = "2px solid #E5E9F0",
    month.dayname.borderLeft = "2px solid #E5E9F0",
    common.backgroundColor = "#2E3440",
    common.holiday.color = "#88C0D0",
    common.saturday.color = "#88C0D0",
    common.dayname.color = "#ECEFF4",
    common.today.color = "#333"
  )

Run the code above in your browser using DataLab