set_theme: Set theme for a calendar

Description Usage Arguments Note Examples

View source: R/theme.R

Description

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

Usage

1
set_theme(cal, ..., theme_list = NULL)

Arguments

cal

A calendar object.

...

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

theme_list

Alternative to ... for using a list.

Note

Online JavaScript documentation: https://nhn.github.io/tui.calendar/latest/themeConfig

Examples

1
2
3
4
5
6
7
8
9
calendar(defaultView = "month") %>%
  set_theme(
    common.border = '2px solid #e5e5e5',
    common.backgroundColor = 'white',
    common.holiday.color = '#ff4040',
    common.saturday.color = '#0000FF',
    common.dayname.color = '#333',
    common.today.color = '#333'
  )

dreamRs/tuicalendr documentation built on Aug. 4, 2021, 12:02 a.m.